[arch-commits] Commit in pkgdiff/trunk (PKGBUILD zstd.diff)
Jan Steffens
heftig at archlinux.org
Thu Jan 9 23:07:08 UTC 2020
Date: Thursday, January 9, 2020 @ 23:07:07
Author: heftig
Revision: 551516
1.7.2-3: zstd
Added:
pkgdiff/trunk/zstd.diff
Modified:
pkgdiff/trunk/PKGBUILD
-----------+
PKGBUILD | 17 +++++++++++++----
zstd.diff | 30 ++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-09 23:05:10 UTC (rev 551515)
+++ PKGBUILD 2020-01-09 23:07:07 UTC (rev 551516)
@@ -4,7 +4,7 @@
pkgname=pkgdiff
pkgver=1.7.2
-pkgrel=2
+pkgrel=3
pkgdesc="A tool for analyzing changes in Linux software packages"
url="https://lvc.github.io/pkgdiff"
arch=('any')
@@ -11,11 +11,20 @@
license=('GPL2')
depends=('perl' 'diffutils' 'gawk' 'wdiff')
makedepends=('git')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/lvc/pkgdiff/archive/$pkgver.tar.gz")
-sha512sums=('2369488e9705280be9b326b07aa9ef0e211440921b9cce5c35560a14d1ad4ac0040eb54024a88a4a5f8f831208b43124c17a817a44840500b490c89bf877b904')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lvc/pkgdiff/archive/$pkgver.tar.gz"
+ zstd.diff)
+sha512sums=('2369488e9705280be9b326b07aa9ef0e211440921b9cce5c35560a14d1ad4ac0040eb54024a88a4a5f8f831208b43124c17a817a44840500b490c89bf877b904'
+ '652bce3b278da6e592204ea360cdd3a389f8bf7cd6b25c20ada0140c06d67c45aa4473a1c4b0859f2f6f63893717eab7baa52fec4b47b335694cc7b51088fb2b')
+prepare() {
+ cd $pkgname-$pkgver
+
+ # tar.zst support https://github.com/lvc/pkgdiff/issues/40
+ patch -Np1 -i ../zstd.diff
+}
+
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd $pkgname-$pkgver
mkdir -p "$pkgdir"/usr
perl Makefile.pl --install --prefix=/usr --destdir="$pkgdir"
Added: zstd.diff
===================================================================
--- zstd.diff (rev 0)
+++ zstd.diff 2020-01-09 23:07:07 UTC (rev 551516)
@@ -0,0 +1,30 @@
+Common subdirectories: pkgdiff-1.7.2/doc and pkgdiff-1.7.2-zst/doc
+Common subdirectories: pkgdiff-1.7.2/modules and pkgdiff-1.7.2-zst/modules
+diff -u pkgdiff-1.7.2/pkgdiff.pl pkgdiff-1.7.2-zst/pkgdiff.pl
+--- pkgdiff-1.7.2/pkgdiff.pl 2016-03-18 12:29:58.000000000 +0000
++++ pkgdiff-1.7.2-zst/pkgdiff.pl 2020-01-09 23:03:16.270580393 +0000
+@@ -461,11 +461,14 @@
+
+ "TAR.LZ" => ["tar.lz", "tlz"],
+
++ "TAR.ZST" => ["tar.zst", "tzst"],
++
+ "ZIP" => ["zip", "zae"],
+ "TAR" => ["tar"],
+ "LZMA" => ["lzma"],
+ "GZ" => ["gz"],
+ "XZ" => ["xz"],
++ "ZST" => ["zst"],
+
+ "JAR" => ["jar", "war",
+ "ear"]
+@@ -2903,6 +2906,9 @@
+ elsif($Format eq "XZ") {
+ $Cmd = "cp -f \"$Pkg\" \"$OutDir\" && cd \"$OutDir\" && unxz \"".get_filename($Pkg)."\"";
+ }
++ elsif($Format eq "ZST") {
++ $Cmd = "cp -f \"$Pkg\" \"$OutDir\" && cd \"$OutDir\" && unzstd --rm \"".get_filename($Pkg)."\"";
++ }
+ elsif($Format eq "ZIP") {
+ $Cmd = "unzip -o \"$Pkg\" -d \"$OutDir\"";
+ }
More information about the arch-commits
mailing list