From 733c8891850519612d1f9afbb14a8fdaae44407d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 20 Feb 2009 16:59:28 +0100 Subject: [PATCH] gawk: converted to subpkgs. --HG-- extra : convert_revision : f5f17f1604557131e5649f957015b019045031f4 --- templates/gawk-locale | 1 + templates/gawk/locale.template | 17 +++++++++++++++++ templates/gawk/template | 2 ++ 3 files changed, 20 insertions(+) create mode 120000 templates/gawk-locale create mode 100644 templates/gawk/locale.template 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"