diff --git a/templates/gawk-locale b/templates/gawk-locale new file mode 120000 index 0000000000..7ef87eea4d --- /dev/null +++ b/templates/gawk-locale @@ -0,0 +1 @@ +gawk \ No newline at end of file diff --git a/templates/gawk/locale.template b/templates/gawk/locale.template new file mode 100644 index 0000000000..a000cacf52 --- /dev/null +++ b/templates/gawk/locale.template @@ -0,0 +1,17 @@ +# Template file for 'gawk-locale'. +# +short_desc="${short_desc} (locales)" +long_desc="${long_desc} + + This package contains the ${sourcepkg} locale files, for non US users." +run_depends= +noarch=yes + +do_install() +{ + local destdir=${XBPS_DESTDIR}/${pkgname}-${version} + + mkdir -p ${destdir}/usr/share + mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/locale \ + ${destdir}/usr/share +} diff --git a/templates/gawk/template b/templates/gawk/template index 1889c0ca7e..31d802104c 100644 --- a/templates/gawk/template +++ b/templates/gawk/template @@ -1,5 +1,6 @@ # Template file for 'gawk' pkgname=gawk +sourcepkg=gawk version=3.1.6 distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz" build_style=gnu_configure @@ -12,3 +13,4 @@ long_desc=" base_chroot=yes run_depends="glibc-2.8" +subpackages="locale"