diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2f2954d483cf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Sun Jan 3 17:45:05 UTC 2016 +pkgbase = librsync-git + pkgdesc = A free software library that implements the rsync remote-delta algorithm (rdiff) - development version + pkgver = 2.0.0.r97.g9b9efb0 + pkgrel = 1 + url = http://librsync.sourceforge.net/ + arch = i686 + arch = x86_64 + arch = armv7h + license = LGPL + makedepends = cmake + depends = popt + depends = zlib + depends = bzip2 + provides = librsync.so + provides = librsync + conflicts = librsync + source = git://github.com/librsync/librsync + source = https://github.com/librsync/librsync/pull/53.patch + sha256sums = SKIP + sha256sums = 12bc09630ae1703f7a56830c6c314e91716abe1b2fbc527f8ea405374acb7fb8 + +pkgname = librsync-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4b228a3e7a2b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: jellysheep <max.mail@dameweb.de> +# Contributor: Evangelos Foutras <evangelos@foutrelis.com> +# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> +# Contributor: Christoph 'delmonico' Neuroth <delmonico@gmx.net> + +_pkgname=librsync +pkgname=librsync-git +pkgver=2.0.0.r97.g9b9efb0 +pkgrel=1 +pkgdesc="A free software library that implements the rsync remote-delta algorithm (rdiff) - development version" +arch=('i686' 'x86_64' 'armv7h') +url="http://librsync.sourceforge.net/" +license=('LGPL') +depends=('popt' 'zlib' 'bzip2') +makedepends=('cmake') +provides=('librsync.so' 'librsync') +conflicts=('librsync') +source=("git://github.com/$_pkgname/$_pkgname" + 'https://github.com/librsync/librsync/pull/53.patch') +sha256sums=('SKIP' + '12bc09630ae1703f7a56830c6c314e91716abe1b2fbc527f8ea405374acb7fb8') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/$_pkgname" + patch -f -p1 < "$srcdir/53.patch" || true + mkdir build +} + +build() { + cd "$srcdir/$_pkgname/build" + + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make +} + +check() { + cd "$srcdir/$_pkgname/build" + make -k test +} + +package() { + cd "$srcdir/$_pkgname" + + make -C build DESTDIR="$pkgdir" install + + install -Dm644 doc/rdiff.1 "$pkgdir/usr/share/man/man1/rdiff.1" + install -Dm644 doc/librsync.3 "$pkgdir/usr/share/man/man3/librsync.3" +} + +# vim:set ts=2 sw=2 et: |