diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/gzip/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/gzip/PKGBUILD')
-rw-r--r-- | core/gzip/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/core/gzip/PKGBUILD b/core/gzip/PKGBUILD new file mode 100644 index 000000000..135dafaa6 --- /dev/null +++ b/core/gzip/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 100035 2010-11-20 01:15:49Z stephane $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=gzip +pkgver=1.4 +pkgrel=2 +pkgdesc="GNU compression utility" +arch=('i686' 'x86_64') +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') + +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 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make prefix=${pkgdir}/usr install + + install -dm755 ${pkgdir}/bin + mv ${pkgdir}/usr/bin/{gunzip,gzip,uncompress,zcat} ${pkgdir}/bin/ + cd $pkgdir/bin + ln -sf ${pkgname} compress +} |