[arch-commits] Commit in xdelta3/trunk (PKGBUILD xdelta3-makefile.patch)

Eric Bélanger eric at archlinux.org
Tue Sep 25 00:08:58 UTC 2012


    Date: Monday, September 24, 2012 @ 20:08:58
  Author: eric
Revision: 167056

upgpkg: xdelta3 3.0.4-1

Upstream update, Clean up PKGBUILD, Remove old patch

Modified:
  xdelta3/trunk/PKGBUILD
Deleted:
  xdelta3/trunk/xdelta3-makefile.patch

------------------------+
 PKGBUILD               |   39 +++++++++++------------------------
 xdelta3-makefile.patch |   51 -----------------------------------------------
 2 files changed, 12 insertions(+), 78 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-09-24 21:09:48 UTC (rev 167055)
+++ PKGBUILD	2012-09-25 00:08:58 UTC (rev 167056)
@@ -4,43 +4,28 @@
 # Contributor: Henning Garus <henning.garus at gmail.com>
 
 pkgname=xdelta3
-pkgver=3.0.0
-pkgrel=2
+pkgver=3.0.4
+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'
-         'fa5973870faf7523043c4858ab7c3bdb')
+depends=('xz')
+source=(http://xdelta.googlecode.com/files/$pkgname-$pkgver.tar.gz)
+md5sums=('c04f7fd9da45741a0095438cfe527b89')
 
 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
-  
-  # for testsuite
-  make xdelta3-debug
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr
+  make
 }
 
 check() {
-  cd $srcdir/xdelta$pkgver
-
-  make test
+  cd "$srcdir/$pkgname-$pkgver"
+  ./xdelta3 test
 }
 
 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
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="${pkgdir}" install
 }
-

Deleted: xdelta3-makefile.patch
===================================================================
--- xdelta3-makefile.patch	2012-09-24 21:09:48 UTC (rev 167055)
+++ xdelta3-makefile.patch	2012-09-25 00:08:58 UTC (rev 167056)
@@ -1,51 +0,0 @@
-diff -Naur xdelta3.0.0-orig/Makefile xdelta3.0.0/Makefile
---- xdelta3.0.0-orig/Makefile	2011-01-09 18:29:06.000000000 +1000
-+++ xdelta3.0.0/Makefile	2011-12-21 11:53:13.530028738 +1000
-@@ -54,7 +54,7 @@
- WIXDIR = "/cygdrive/c/Program Files/wix2.0.4820"
- 
- # -arch x86_64
--CFLAGS= -Wall -Wshadow -fno-builtin
-+CFLAGS+= -Wall -Wshadow -fno-builtin
- WFLAGS= -Wextra -Wsign-compare -Wconversion -Wextra -Wno-unused-parameter
- 
- # $Format: "REL=$Xdelta3Version$" $
-@@ -126,7 +126,7 @@
- 	$(WIXDIR)/light.exe xdelta3.wixobj -out xdelta3.msi
- 
- xdelta3: $(SOURCES)
--	$(CC) $(CFLAGS) -O3 xdelta3.c -lm -o xdelta3 \
-+	$(CC) $(CFLAGS) -O3 xdelta3.c -lm $(LDFLAGS) -o xdelta3 \
- 	      -DGENERIC_ENCODE_TABLES=0 \
- 	      -DREGRESSION_TEST=1 \
- 	      -DSECONDARY_DJW=1 \
-@@ -137,7 +137,7 @@
- 	      -DXD3_USE_LARGEFILE64=1
- 
- xdelta3-debug: $(SOURCES)
--	$(CC) -g $(CFLAGS) xdelta3.c -lm -o xdelta3-debug \
-+	$(CC) -g $(CFLAGS) xdelta3.c -lm $(LDFLAGS) -o xdelta3-debug \
- 		-DGENERIC_ENCODE_TABLES=1 \
- 		-DREGRESSION_TEST=1 \
- 		-DSECONDARY_DJW=1 \
-@@ -202,6 +202,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 \
-@@ -221,8 +224,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 $(CFLAGS) $(LDFLAGS) -shared xdelta3_PIC.o xdelta3_wrap.o \
- 		-o xdelta3module.so \
- 		/usr/lib/libpython$(PYVER).so \
- 		-lc




More information about the arch-commits mailing list