diff options
Diffstat (limited to 'abs/core/gettext')
-rw-r--r-- | abs/core/gettext/PKGBUILD | 25 | ||||
-rw-r--r-- | abs/core/gettext/gettext.install | 22 |
2 files changed, 38 insertions, 9 deletions
diff --git a/abs/core/gettext/PKGBUILD b/abs/core/gettext/PKGBUILD index fab83f2..030e00a 100644 --- a/abs/core/gettext/PKGBUILD +++ b/abs/core/gettext/PKGBUILD @@ -1,22 +1,29 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: judd <jvinet@zeroflux.org> +# $Id: PKGBUILD 82270 2010-06-09 19:25:00Z tpowa $ +# Maintainer: + pkgname=gettext -pkgver=0.17 -pkgrel=10 +pkgver=0.18.1.1 +pkgrel=1 pkgdesc="GNU internationalization library" -arch=(i686 x86_64) +arch=('i686' 'x86_64') url="http://www.gnu.org/software/gettext" license=('GPL') groups=('base') -depends=('gcc-libs' 'acl') +depends=('gcc-libs' 'acl' 'sh' 'glib2') +optdepends=('cvs: for autopoint tool') options=(!libtool) +install=gettext.install source=(ftp://ftp.gnu.org/pub/gnu/gettext/${pkgname}-${pkgver}.tar.gz) -md5sums=('58a2bc6d39c0ba57823034d55d65d606') +md5sums=('3dd55b952826d2b32f51308f2f91aa89') build() { - cd ${startdir}/src/${pkgname}-${pkgver} + cd $srcdir/${pkgname}-${pkgver} sed -i -e 's/libexpat.so.0/libexpat.so.1/' gettext-tools/src/x-glade.c ./configure --prefix=/usr --enable-csharp make || return 1 - make DESTDIR=${startdir}/pkg install +} + +package() { + cd $srcdir/${pkgname}-${pkgver} + make DESTDIR=$pkgdir install } diff --git a/abs/core/gettext/gettext.install b/abs/core/gettext/gettext.install new file mode 100644 index 0000000..0ff5294 --- /dev/null +++ b/abs/core/gettext/gettext.install @@ -0,0 +1,22 @@ +infodir=/usr/share/info +filelist=(gettext.info.gz autosprintf.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |