diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-01 03:35:09 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-01 03:35:09 +0000 |
commit | 2d8813df5b3f8a63835a228496f998914755d820 (patch) | |
tree | 13ff3124b8fcf9e0b34581dfb93555b6c5b7d741 /community/xdelta3 | |
parent | e7daa750c892363d7624ed0951bbb89ad71a3247 (diff) |
Sat Feb 1 03:33:52 UTC 2014
Diffstat (limited to 'community/xdelta3')
-rw-r--r-- | community/xdelta3/PKGBUILD | 45 | ||||
-rw-r--r-- | community/xdelta3/regtest_size_t.patch | 11 |
2 files changed, 40 insertions, 16 deletions
diff --git a/community/xdelta3/PKGBUILD b/community/xdelta3/PKGBUILD index 1af2efff6..7ef0fbcc1 100644 --- a/community/xdelta3/PKGBUILD +++ b/community/xdelta3/PKGBUILD @@ -1,31 +1,44 @@ -# $Id: PKGBUILD 90967 2013-05-16 19:50:32Z bpiotrowski $ -# Maintainer: Allan McRae <allan@archlinux.org> +# $Id: PKGBUILD 105087 2014-01-31 12:10:31Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: 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.7 +pkgver=3.0.8 pkgrel=1 -pkgdesc="Diff utility which works with binary files" -arch=('i686' 'x86_64') -url="http://xdelta.org/" +pkgdesc='Diff utility which works with binary files' +arch=('x86_64' 'i686') +url='http://xdelta.org/' license=('GPL') depends=('xz') -source=(http://xdelta.googlecode.com/files/$pkgname-$pkgver.tar.gz) -md5sums=('ef6631e4f9219a80bcb9e3020962b6ec') +source=("http://${pkgname/3}.googlecode.com/files/$pkgname-$pkgver.tar.xz" + 'regtest_size_t.patch') +# SHA1 sum from https://code.google.com/p/xdelta/downloads/detail?name=xdelta3-3.0.8.tar.xz&can=2&q= +sha1sums=('62c7a029e96c0904bb47a5e2f3de08473a185539' + 'c2816b5d4bfb405d3adb771fa09b367a88971240') -build() { - cd $pkgname-$pkgver - ./configure --prefix=/usr - make +prepare() { + cd "$pkgname-$pkgver" + + patch -Np1 -i ../regtest_size_t.patch } check() { - cd $pkgname-$pkgver - ./xdelta3 test + cd "$pkgname-$pkgver" + + ./$pkgname test +} + +build() { + cd "$pkgname-$pkgver" + + ./configure --prefix=/usr + make } package() { - cd $pkgname-$pkgver - make DESTDIR="$pkgdir" install + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install } + +# vim:set ts=2 sw=2 et: diff --git a/community/xdelta3/regtest_size_t.patch b/community/xdelta3/regtest_size_t.patch new file mode 100644 index 000000000..e048135bd --- /dev/null +++ b/community/xdelta3/regtest_size_t.patch @@ -0,0 +1,11 @@ +--- a/testing/regtest.cc ++++ b/testing/regtest.cc +@@ -12,7 +12,7 @@ public: + Options() : encode_srcwin_maxsz(1<<20), + block_size(Constants::BLOCK_SIZE), + size_known(false) { } +- size_t encode_srcwin_maxsz; ++ uint64_t encode_srcwin_maxsz; + size_t block_size; + bool size_known; + }; |