[arch-commits] Commit in xdelta3/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Thu Apr 8 14:35:26 UTC 2021
Date: Thursday, April 8, 2021 @ 14:35:26
Author: arodseth
Revision: 914021
Fix the check function, ref. feature request FS#69874
Modified:
xdelta3/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++++++++++-------------
1 file changed, 30 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-08 14:34:12 UTC (rev 914020)
+++ PKGBUILD 2021-04-08 14:35:26 UTC (rev 914021)
@@ -5,30 +5,47 @@
pkgname=xdelta3
pkgver=3.1.0
-pkgrel=1
-pkgdesc='Diff utility which works with binary files'
-arch=('x86_64')
+pkgrel=2
+pkgdesc='Diff utility for binary files'
+arch=(x86_64)
+# No HTTPS available
url='http://xdelta.org/'
-license=('GPL')
-source=("https://github.com/jmacd/xdelta-devel/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('114543336ab6cee3764e3c03202701ef79d7e5e8e4863fe64811e4d9e61884dc')
+license=(Apache)
+depends=(ncompress)
+makedepends=(git python)
+source=("git+https://github.com/jmacd/xdelta#commit=4b4aed71a959fe11852e45242bb6524be85d3709") # tag: v3.1.0
+b2sums=(SKIP)
build() {
- cd "$pkgname-$pkgver"
-
- ./configure --prefix=/usr
+ cd xdelta/xdelta3
+
+ export CFLAGS="$CFLAGS -w"
+ export CXXFLAGS="$CFLAGS -w"
+
+ aclocal
+ autoreconf --install
+ libtoolize
+ autoconf
+ autoheader
+ automake --add-missing
+ automake
+
+ ./configure --disable-dependency-tracking --prefix=/usr --with-liblzma
make
}
check() {
- cd "$pkgname-$pkgver"
+ cd xdelta/xdelta3/testing
- ./$pkgname test
+ # Thanks Gentoo <3
+ 2to3 -w -n --no-diffs *.py
+ sed -i -e '/python/s:2.6:2:' xdelta3-regtest.py
+ sed -i -e '/python/s:2.7:2:' xdelta3-test.py
+ ../xdelta3regtest
}
package() {
- DESTDIR="$pkgdir" make -C "$pkgname-$pkgver" install
+ DESTDIR="$pkgdir" make -C xdelta/xdelta3 install
}
# getver: github.com/jmacd/xdelta
-# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list