diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 35 insertions, 12 deletions
@@ -1,17 +1,22 @@ pkgbase = gzip-with-pigz-symlinks - pkgdesc = gzip with binary symlinked to pigz + pkgdesc = GNU compression utility with binary symlinked to pigz pkgver = 1.10 - pkgrel = 1 + pkgrel = 2 url = https://www.gnu.org/software/gzip/ arch = x86_64 + arch = i686 license = GPL3 + depends = glibc depends = pigz depends = bash depends = less provides = gzip conflicts = gzip source = https://ftp.gnu.org/pub/gnu/gzip/gzip-1.10.tar.xz - md5sums = 691b1221694c3394f1c537df4eee39d3 + source = https://ftp.gnu.org/pub/gnu/gzip/gzip-1.10.tar.xz.sig + validpgpkeys = 155D3FC500C834486D1EEA677FD9FCCB000BEEEE + sha256sums = 8425ccac99872d544d4310305f915f5ea81e04d0f437ef1a230dc9d1c819d7c0 + sha256sums = SKIP pkgname = gzip-with-pigz-symlinks @@ -1,27 +1,45 @@ -# Maintainter: Árni Dagur <arnidg@protonmail.ch> +# Maintainter: Felix Golatofski <contact@xdfr.de> +# Contributor: Árni Dagur <arnidg@protonmail.ch> # Adapted from original PKGBULID written by: Sébastien "Seblu" Luttringer <seblu@archlinux.org> pkgname=gzip-with-pigz-symlinks +_pkgname=gzip pkgver=1.10 -pkgrel=1 -pkgdesc='gzip with binary symlinked to pigz' -arch=('x86_64') +pkgrel=2 +pkgdesc='GNU compression utility with binary symlinked to pigz' +arch=('x86_64' 'i686') url='https://www.gnu.org/software/gzip/' license=('GPL3') -depends=('pigz' 'bash' 'less') +depends=('glibc' 'pigz' 'bash' 'less') provides=('gzip') conflicts=('gzip') -source=("https://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz") -md5sums=('691b1221694c3394f1c537df4eee39d3') +validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering +source=("https://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz"{,.sig}) +sha256sums=('8425ccac99872d544d4310305f915f5ea81e04d0f437ef1a230dc9d1c819d7c0' + 'SKIP') + +prepare() { + cd $_pkgname-$pkgver + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do + if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" + fi + done + : +} + build() { - cd gzip-$pkgver + cd $_pkgname-$pkgver ./configure prefix=/usr make } package() { - cd gzip-$pkgver + cd $_pkgname-$pkgver make prefix="$pkgdir"/usr install ln -sf pigz "$pkgdir"/usr/bin/gzip |