From 3ff20dedff636571ad0faa4736af5b23e4623ffe Mon Sep 17 00:00:00 2001 From: root Date: Thu, 14 Mar 2013 00:05:24 -0700 Subject: Thu Mar 14 00:05:23 PDT 2013 --- community/pigz/PKGBUILD | 37 ++++++++++++++++++++----------------- community/pigz/pigz-2.3-make.patch | 25 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 community/pigz/pigz-2.3-make.patch (limited to 'community/pigz') diff --git a/community/pigz/PKGBUILD b/community/pigz/PKGBUILD index f9331664b..5ae1190d3 100644 --- a/community/pigz/PKGBUILD +++ b/community/pigz/PKGBUILD @@ -1,38 +1,41 @@ -# $Id: PKGBUILD 74606 2012-07-31 12:59:28Z bpiotrowski $ +# $Id: PKGBUILD 86235 2013-03-13 19:48:34Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski # Contributor: Laszlo Papp # Contributor: Stefan Husmann pkgname=pigz -pkgver=2.2.5 +pkgver=2.3 pkgrel=1 -pkgdesc="Parallel implementation of the gzip file compressor" +pkgdesc='Parallel implementation of the gzip file compressor' arch=('i686' 'x86_64') -url="http://www.zlib.net/pigz/" +url='http://www.zlib.net/pigz/' license=('custom') depends=('zlib') -source=(http://www.zlib.net/$pkgname/$pkgname-$pkgver.tar.gz) -md5sums=('188f769ccedc403893d03049ad31e969') +source=(http://www.zlib.net/$pkgname/$pkgname-$pkgver.tar.gz + pigz-2.3-make.patch) +md5sums=('042e3322534f2c3d761736350cac303f' + 'f6291ee36e36e098d7fbf0655a89b183') build() { - cd "${srcdir}/$pkgname-$pkgver" + cd "$srcdir"/$pkgname-$pkgver + patch -Np1 -i "$srcdir"/pigz-2.3-make.patch make } package() { - cd "${srcdir}/$pkgname-$pkgver" + cd "$srcdir"/$pkgname-$pkgver - install -Dm755 "${srcdir}"/${pkgname}-$pkgver/${pkgname} \ - "${pkgdir}"/usr/bin/${pkgname} + install -Dm755 "$srcdir"/$pkgname-$pkgver/$pkgname \ + "$pkgdir"/usr/bin/$pkgname - pushd "${pkgdir}"/usr/bin + pushd "$pkgdir"/usr/bin ln -s pigz unpigz popd - install -Dm644 "${srcdir}"/${pkgname}-$pkgver/${pkgname}.1 \ - "${pkgdir}"/usr/share/man/man1/${pkgname}.1 - install -Dm644 "${srcdir}"/${pkgname}-$pkgver/${pkgname}.pdf \ - "${pkgdir}"/usr/share/doc/${pkgname}/${pkgname}.pdf - install -Dm644 "${srcdir}"/${pkgname}-$pkgver/README \ - "${pkgdir}"/usr/share/licenses/${pkgname}/README + install -Dm644 "$srcdir"/$pkgname-$pkgver/$pkgname.1 \ + "$pkgdir"/usr/share/man/man1/$pkgname.1 + install -Dm644 "$srcdir"/$pkgname-$pkgver/$pkgname.pdf \ + "$pkgdir"/usr/share/doc/$pkgname/$pkgname.pdf + install -Dm644 "$srcdir"/$pkgname-$pkgver/README \ + "$pkgdir"/usr/share/licenses/$pkgname/README } diff --git a/community/pigz/pigz-2.3-make.patch b/community/pigz/pigz-2.3-make.patch new file mode 100644 index 000000000..f014c7b02 --- /dev/null +++ b/community/pigz/pigz-2.3-make.patch @@ -0,0 +1,25 @@ +From 545a9350f8026f6c9826dd4fa7ab6000d8826d78 Mon Sep 17 00:00:00 2001 +From: Tim Harder +Date: Wed, 6 Mar 2013 15:51:27 -0800 +Subject: [PATCH] Respect LDFLAGS and explicitly link to math library + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 3cc231d..48d1f26 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,7 +3,7 @@ CFLAGS=-O3 -Wall -Wextra + + + pigz: pigz.o yarn.o zopfli/deflate.o zopfli/blocksplitter.o zopfli/tree.o zopfli/lz77.o zopfli/cache.o zopfli/hash.o zopfli/util.o zopfli/squeeze.o zopfli/katajainen.o +- $(CC) -o pigz $^ -lpthread -lz ++ $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lz -lm + ln -f pigz unpigz + + pigz.o: pigz.c yarn.h zopfli/deflate.h zopfli/util.h +-- +1.8.1.5 + -- cgit v1.2.3-54-g00ecf