diff options
Diffstat (limited to 'abs/core/gzip')
-rw-r--r-- | abs/core/gzip/PKGBUILD | 31 | ||||
-rw-r--r-- | abs/core/gzip/gzip.install | 16 |
2 files changed, 20 insertions, 27 deletions
diff --git a/abs/core/gzip/PKGBUILD b/abs/core/gzip/PKGBUILD index 96e6695..df04137 100644 --- a/abs/core/gzip/PKGBUILD +++ b/abs/core/gzip/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 64609 2010-01-21 11:31:50Z allan $ +# $Id: PKGBUILD 162088 2012-06-19 15:43:54Z allan $ # Maintainer: Allan McRae <allan@archlinux.org> # Contributor: judd <jvinet@zeroflux.org> pkgname=gzip -pkgver=1.4 +pkgver=1.5 pkgrel=1 pkgdesc="GNU compression utility" arch=('i686' 'x86_64') @@ -11,24 +11,23 @@ url="http://www.gnu.org/software/gzip/" license=('GPL3') groups=('base') depends=('glibc' 'bash') -makedepends=('patch') install=gzip.install -source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.gz) -md5sums=('e381b8506210c794278f5527cba0e765') +source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz{,.sig}) +md5sums=('2a431e169b6f62f7332ef6d47cc53bae' + '2de95937a3f65137acf9c55d4ad0447a') build() { - cd $srcdir/$pkgname-$pkgver - + cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr - make || return 1 + make } -package() { - cd $srcdir/$pkgname-$pkgver - make prefix=$pkgdir/usr install - install -dm755 $pkgdir/bin - cd $pkgdir/usr/bin - mv gzip gunzip zcat uncompress $pkgdir/bin - cd $pkgdir/bin - ln -sf $pkgname compress +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make prefix=${pkgdir}/usr install } diff --git a/abs/core/gzip/gzip.install b/abs/core/gzip/gzip.install index f25897b..43218d9 100644 --- a/abs/core/gzip/gzip.install +++ b/abs/core/gzip/gzip.install @@ -1,11 +1,8 @@ -infodir=/usr/share/info -filelist=(gzip.info) +infodir=usr/share/info post_install() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - usr/bin/install-info $infodir/$file.gz $infodir/dir 2> /dev/null - done + [ -x usr/bin/install-info ] || return 0 + usr/bin/install-info $infodir/gzip.info.gz $infodir/dir 2> /dev/null } post_upgrade() { @@ -13,9 +10,6 @@ post_upgrade() { } pre_remove() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - usr/bin/install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null - done + [ -x usr/bin/install-info ] || return 0 + usr/bin/install-info --delete $infodir/gzip.info.gz $infodir/dir 2> /dev/null } - |