From 3e630ff51496dfb907207bd4f5f72adaa4181956 Mon Sep 17 00:00:00 2001 From: Subhaditya Nath Date: Mon, 15 Aug 2022 21:00:05 +0530 Subject: [PATCH] pigz: fix tests, add missing executable --- srcpkgs/pigz/patches/fix-tests.patch | 13 +++++++++++++ srcpkgs/pigz/template | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/pigz/patches/fix-tests.patch diff --git a/srcpkgs/pigz/patches/fix-tests.patch b/srcpkgs/pigz/patches/fix-tests.patch new file mode 100644 index 000000000000..6e3fd90e3fda --- /dev/null +++ b/srcpkgs/pigz/patches/fix-tests.patch @@ -0,0 +1,13 @@ +--- a/Makefile ++++ b/Makefile +@@ -90,10 +90,6 @@ test: pigz + (printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2 + (printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3 + (printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4 +- -@if test "`which compress | grep /`" != ""; then \ +- echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\ +- compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\ +- fi + @rm -f pigz.c.gz pigz.c.zz pigz.c.zip + + tests: dev test diff --git a/srcpkgs/pigz/template b/srcpkgs/pigz/template index eee271a39c2c..ecd447e7ac92 100644 --- a/srcpkgs/pigz/template +++ b/srcpkgs/pigz/template @@ -1,7 +1,7 @@ # Template file for 'pigz' pkgname=pigz version=2.7 -revision=1 +revision=2 build_style=gnu-makefile make_check_target=test makedepends="zlib-devel" @@ -15,4 +15,5 @@ checksum=b4c9e60344a08d5db37ca7ad00a5b2c76ccb9556354b722d56d55ca7e8b1c707 do_install() { vbin pigz vman pigz.1 + ln -sf pigz "${DESTDIR}/usr/bin/unpigz" }