summaryrefslogtreecommitdiff
path: root/testing/gzip/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-08 16:35:25 +0000
committerroot <root@rshg054.dnsready.net>2011-09-08 16:35:25 +0000
commit8cca36c97b57b8d0a7e5521647c02409eb94ade4 (patch)
tree8e893420d3a3c3ce565a8ab627f3bbce04ac5a69 /testing/gzip/PKGBUILD
parente63433d7f10b5c32f348d4b2cfb38c777b314420 (diff)
Thu Sep 8 16:35:25 UTC 2011
Diffstat (limited to 'testing/gzip/PKGBUILD')
-rw-r--r--testing/gzip/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/gzip/PKGBUILD b/testing/gzip/PKGBUILD
new file mode 100644
index 000000000..03aedd315
--- /dev/null
+++ b/testing/gzip/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 137500 2011-09-08 00:49:17Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=gzip
+pkgver=1.4
+pkgrel=3
+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
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make 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/
+ cd $pkgdir/bin
+}