diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/xdelta3 |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/xdelta3')
-rw-r--r-- | extra/xdelta3/PKGBUILD | 36 | ||||
-rw-r--r-- | extra/xdelta3/xdelta3-makefile.patch | 24 |
2 files changed, 60 insertions, 0 deletions
diff --git a/extra/xdelta3/PKGBUILD b/extra/xdelta3/PKGBUILD new file mode 100644 index 000000000..a8149d55c --- /dev/null +++ b/extra/xdelta3/PKGBUILD @@ -0,0 +1,36 @@ +# $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.0.0 +pkgrel=1 +pkgdesc="A diff utility which works with binary files" +arch=('i686' 'x86_64') +url="http://xdelta.org/" +license=('GPL') +makedepends=('python2') +optdepends=('python2: for python modules') +source=(http://xdelta.googlecode.com/files/xdelta$pkgver.tar.gz + xdelta3-makefile.patch) +md5sums=('5fe038be3a266d2a7913e10d1cec6d88' + '378e9a735d92fb2fc695ed9ce2fad2d5') + +build() { + cd $srcdir/xdelta$pkgver + patch -Np1 -i $srcdir/xdelta3-makefile.patch + sed -i "/PYVER = /s/2.6/2.7/" Makefile + + make xdelta3 + make xdelta3module.so +} + +package() { + cd $srcdir/xdelta$pkgver + + install -D xdelta3 $pkgdir/usr/bin/xdelta3 + python2 ./setup.py install --root ${pkgdir} + install -m644 {xdelta3.py,xdelta3module.so} ${pkgdir}/usr/lib/python2.7/site-packages +} + diff --git a/extra/xdelta3/xdelta3-makefile.patch b/extra/xdelta3/xdelta3-makefile.patch new file mode 100644 index 000000000..3085d3c29 --- /dev/null +++ b/extra/xdelta3/xdelta3-makefile.patch @@ -0,0 +1,24 @@ +diff -Naur xdelta3.0v-old/Makefile xdelta3.0v/Makefile +--- xdelta3.0v-old/Makefile 2009-03-12 01:44:51.000000000 +0000 ++++ xdelta3.0v/Makefile 2009-03-14 17:02:33.000000000 +0000 +@@ -200,6 +200,9 @@ + xdelta3.o: $(SOURCES) + $(CC) -O3 $(CFLAGS) -c xdelta3.c $(SWIG_FLAGS) -o xdelta3.o + ++xdelta3_PIC.o: $(SOURCES) ++ $(CC) -O3 $(CFLAGS) -fPIC -c xdelta3.c $(SWIG_FLAGS) -o xdelta3_PIC.o ++ + xdelta3_wrap.o: xdelta3_wrap.c + $(CC) -O3 $(CFLAGS) $(SWIG_FLAGS) \ + -DHAVE_CONFIG_H \ +@@ -218,8 +221,8 @@ + cp $(SWIGTGT) /usr/lib/python$(PYVER)/site-packages + + ifeq ("$(DARWIN)", "") +-xdelta3module.so: xdelta3_wrap.o xdelta3.o +- ld -shared xdelta3.o xdelta3_wrap.o \ ++xdelta3module.so: xdelta3_wrap.o xdelta3_PIC.o ++ cc -shared xdelta3_PIC.o xdelta3_wrap.o \ + -o xdelta3module.so \ + /usr/lib/libpython$(PYVER).so \ + -lc |