summaryrefslogtreecommitdiff
path: root/testing/gzip
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-19 00:01:39 +0000
committerroot <root@rshg054.dnsready.net>2012-06-19 00:01:39 +0000
commitca8fbff4eeda39b8a24515043ec4c8fdb95c23ee (patch)
treee31e0e223f205368e42e8f2378af9f8c76da0c0f /testing/gzip
parent014b5d0a1ee98ba0466f067f605b9637f2a14b2f (diff)
Tue Jun 19 00:01:39 UTC 2012
Diffstat (limited to 'testing/gzip')
-rw-r--r--testing/gzip/PKGBUILD33
-rw-r--r--testing/gzip/gzip.install15
2 files changed, 48 insertions, 0 deletions
diff --git a/testing/gzip/PKGBUILD b/testing/gzip/PKGBUILD
new file mode 100644
index 000000000..d92cbdeef
--- /dev/null
+++ b/testing/gzip/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 161985 2012-06-17 23:21:13Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=gzip
+pkgver=1.5
+pkgrel=1
+pkgdesc="GNU compression utility"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/gzip/"
+license=('GPL3')
+groups=('base')
+depends=('glibc' 'bash')
+install=gzip.install
+source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz{,.sig})
+md5sums=('2a431e169b6f62f7332ef6d47cc53bae'
+ '2de95937a3f65137acf9c55d4ad0447a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make prefix=${pkgdir}/usr install
+}
diff --git a/testing/gzip/gzip.install b/testing/gzip/gzip.install
new file mode 100644
index 000000000..43218d98e
--- /dev/null
+++ b/testing/gzip/gzip.install
@@ -0,0 +1,15 @@
+infodir=usr/share/info
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ usr/bin/install-info $infodir/gzip.info.gz $infodir/dir 2> /dev/null
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ usr/bin/install-info --delete $infodir/gzip.info.gz $infodir/dir 2> /dev/null
+}