diff options
Diffstat (limited to 'core/gzip')
-rw-r--r-- | core/gzip/PKGBUILD | 24 | ||||
-rw-r--r-- | core/gzip/gzip.install | 13 |
2 files changed, 11 insertions, 26 deletions
diff --git a/core/gzip/PKGBUILD b/core/gzip/PKGBUILD index d6ce70c31..917c1facf 100644 --- a/core/gzip/PKGBUILD +++ b/core/gzip/PKGBUILD @@ -1,31 +1,25 @@ -# $Id: PKGBUILD 142064 2011-11-04 23:35:55Z 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 -pkgrel=4.1 +pkgver=1.5 +pkgrel=1 pkgdesc="GNU compression utility" arch=('i686' 'x86_64' 'mips64el') 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{,.sig}) -md5sums=('e381b8506210c794278f5527cba0e765' - '3b11d485d1638f2d16f7494a0486a6e8') +source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz{,.sig}) +md5sums=('2a431e169b6f62f7332ef6d47cc53bae' + '2de95937a3f65137acf9c55d4ad0447a') build() { cd "${srcdir}/${pkgname}-${pkgver}" - - # By default Gzip uses assembly code. While this may preform better, - # it is not position independent. The DEFS environment variable is - # set to use only C code. - export DEFS="NO_ASM" ./configure --prefix=/usr - make + make } check() { @@ -35,9 +29,5 @@ check() { package() { cd "${srcdir}/${pkgname}-${pkgver}" - make prefix=${pkgdir}/usr install - - install -dm755 ${pkgdir}/bin - mv ${pkgdir}/usr/bin/{gunzip,gzip,uncompress,zcat} ${pkgdir}/bin/ } diff --git a/core/gzip/gzip.install b/core/gzip/gzip.install index 24c8b8fb9..43218d98e 100644 --- a/core/gzip/gzip.install +++ b/core/gzip/gzip.install @@ -1,11 +1,8 @@ infodir=usr/share/info -filelist=(gzip.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,8 +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 } |