archrelease: copy trunk to community-any
[ArchLinux/community.git] / xdelta3 / trunk / PKGBUILD
blobb82a38d0e43e0213fb6d150c610902d0e07ead73
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Eduard "bekks" Warkentin <eduard.warkentin@gmail.com>
4 # Contributor: Henning Garus <henning.garus@gmail.com>
6 pkgname=xdelta3
7 pkgver=3.1.0
8 pkgrel=4
9 pkgdesc='Diff utility for binary files'
10 arch=(x86_64)
11 # No HTTPS available
12 url='http://xdelta.org/'
13 license=(Apache)
14 depends=(ncompress)
15 makedepends=(git python)
16 source=("git+https://github.com/jmacd/xdelta#commit=4b4aed71a959fe11852e45242bb6524be85d3709") # tag: v3.1.0
17 b2sums=(SKIP)
19 build() {
20   cd xdelta/xdelta3
22   export CFLAGS="$CFLAGS -w"
23   export CXXFLAGS="$CFLAGS -w"
25   aclocal
26   autoreconf --install
27   libtoolize
28   autoconf
29   autoheader
30   automake --add-missing
31   automake
33   ./configure --disable-dependency-tracking --prefix=/usr --with-liblzma
34   make
37 check() {
38   cd xdelta/xdelta3/testing
40   # Thanks Gentoo <3
41   2to3 -w -n --no-diffs *.py
42   sed -i -e '/python/s:2.6:2:' xdelta3-regtest.py
43   sed -i -e '/python/s:2.7:2:' xdelta3-test.py
44   ../xdelta3regtest
47 package() {
48   DESTDIR="$pkgdir" make -C xdelta/xdelta3 install
51 # getver: github.com/jmacd/xdelta