[arch-commits] Commit in gzip/repos (6 files)

Allan McRae allan at archlinux.org
Thu Nov 3 07:20:17 UTC 2011


    Date: Thursday, November 3, 2011 @ 03:20:16
  Author: allan
Revision: 141921

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  gzip/repos/testing-i686/
  gzip/repos/testing-i686/PKGBUILD
    (from rev 141920, gzip/trunk/PKGBUILD)
  gzip/repos/testing-i686/gzip.install
    (from rev 141920, gzip/trunk/gzip.install)
  gzip/repos/testing-x86_64/
  gzip/repos/testing-x86_64/PKGBUILD
    (from rev 141920, gzip/trunk/PKGBUILD)
  gzip/repos/testing-x86_64/gzip.install
    (from rev 141920, gzip/trunk/gzip.install)

-----------------------------+
 testing-i686/PKGBUILD       |   43 ++++++++++++++++++++++++++++++++++++++++++
 testing-i686/gzip.install   |   20 +++++++++++++++++++
 testing-x86_64/PKGBUILD     |   43 ++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/gzip.install |   20 +++++++++++++++++++
 4 files changed, 126 insertions(+)

Copied: gzip/repos/testing-i686/PKGBUILD (from rev 141920, gzip/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2011-11-03 07:20:16 UTC (rev 141921)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=gzip
+pkgver=1.4
+pkgrel=4
+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{,.sig})
+md5sums=('e381b8506210c794278f5527cba0e765'
+         '3b11d485d1638f2d16f7494a0486a6e8')
+
+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/
+}

Copied: gzip/repos/testing-i686/gzip.install (from rev 141920, gzip/trunk/gzip.install)
===================================================================
--- testing-i686/gzip.install	                        (rev 0)
+++ testing-i686/gzip.install	2011-11-03 07:20:16 UTC (rev 141921)
@@ -0,0 +1,20 @@
+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
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+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
+}

Copied: gzip/repos/testing-x86_64/PKGBUILD (from rev 141920, gzip/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2011-11-03 07:20:16 UTC (rev 141921)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=gzip
+pkgver=1.4
+pkgrel=4
+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{,.sig})
+md5sums=('e381b8506210c794278f5527cba0e765'
+         '3b11d485d1638f2d16f7494a0486a6e8')
+
+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/
+}

Copied: gzip/repos/testing-x86_64/gzip.install (from rev 141920, gzip/trunk/gzip.install)
===================================================================
--- testing-x86_64/gzip.install	                        (rev 0)
+++ testing-x86_64/gzip.install	2011-11-03 07:20:16 UTC (rev 141921)
@@ -0,0 +1,20 @@
+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
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+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
+}




More information about the arch-commits mailing list