PKGBUILDs/extra/xdelta3/PKGBUILD
2009-10-09 21:23:22 -05:00

38 lines
1.1 KiB
Bash

# $Id: $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Eduard "bekks" Warkentin <eduard.warkentin@gmail.com>
# Contributor: Henning Garus <henning.garus@gmail.com>
pkgname=xdelta3
pkgver=3.0v
pkgrel=2
pkgdesc="A diff utility which works with binary files"
arch=('i686' 'x86_64')
url="http://xdelta.org/"
license=('GPL')
makedepends=('python')
optdepends=('python: for python modules')
source=(http://xdelta.googlecode.com/files/xdelta$pkgver.tar.gz
xdelta3-makefile.patch
xdelta3-xz.patch)
md5sums=('6b5faeb88028a1211cb047e49b687a3a'
'35aa0d20a27791addeb929591a78bd3f'
'fb1e685d810a15f04b7bdbc9a3f3e635')
build() {
cd $srcdir/xdelta$pkgver
patch -Np1 -i $srcdir/xdelta3-makefile.patch
patch -Np1 -i $srcdir/xdelta3-xz.patch
# xdelta3 binary
make xdelta3 || return 1
install -D xdelta3 $pkgdir/usr/bin/xdelta3
# xdelta3main python module
python ./setup.py install --root ${pkgdir}
# xdelta3 python module
make xdelta3module.so || return 1
install -m644 {xdelta3.py,xdelta3module.so} ${pkgdir}/usr/lib/python2.6/site-packages
}