diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:52 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 02:31:52 (GMT) |
commit | 0137c0d4e4f8d7a381dd2b7ba1778af61a22a805 (patch) | |
tree | f0ed3ed621dfc2a142c677e2c4afedb368da9f6f | |
parent | 78e6e9afbf9ba87b45032042ee1c9fe0ee426672 (diff) | |
download | linhes_pkgbuild-0137c0d4e4f8d7a381dd2b7ba1778af61a22a805.zip linhes_pkgbuild-0137c0d4e4f8d7a381dd2b7ba1778af61a22a805.tar.gz linhes_pkgbuild-0137c0d4e4f8d7a381dd2b7ba1778af61a22a805.tar.bz2 |
gzip 1.5
-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 } - |