diff options
author | Daniel Bermond | 2019-06-15 01:13:18 +0000 |
---|---|---|
committer | Daniel Bermond | 2019-06-15 01:13:18 +0000 |
commit | 0d9c0fcbc878e4e84e33ad43d1bec3b72a155b6c (patch) | |
tree | 6b1ac9def3f2a5b9d8008e69d620ce833b4de08e /PKGBUILD | |
download | aur-torrentzip-svn.tar.gz |
Initial commit of torrentzip-svn
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..b4beb3b931f2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Daniel Bermond < gmail-com: danielbermond > + +pkgname=torrentzip-svn +pkgver=0.9.r9 +pkgrel=1 +pkgdesc='Create identical zip archives over multiple systems (svn version)' +arch=('x86_64') +url='https://sourceforge.net/projects/trrntzip/' +license=('GPL') +depends=('zlib') +optdepends=('python2: for purgecruft utility') +makedepends=('subversion' 'dos2unix') +provides=('torrentzip') +conflicts=('torrentzip') +source=('torrentzip'::'svn+https://svn.code.sf.net/p/trrntzip/code/' + 'torrentzip-svn-fix-comment.patch') +sha256sums=('SKIP' + 'e5ebb5a77a57bd852c2697c9ea8f451844170f0764710e5850d6c8afef739f4c') + +prepare() { + cd torrentzip + + patch --binary -Np1 -i "${srcdir}/torrentzip-svn-fix-comment.patch" + + chmod a+x autogen.sh + dos2unix autogen.sh + ./autogen.sh +} + +pkgver() { + cd torrentzip + + # subversion + printf '%s.%s' \ + "$(grep '#define[[:space:]]TZ_VERSION' ./src/trrntzip.c | awk '{ gsub("\042", "", $3); print $3 }' | tr -d '\r')" \ + "$(printf 'r%s' "$(svnversion | tr -d 'A-z')")" + +} + +build() { + cd torrentzip + + ./configure --prefix='/usr' + + make +} + +check() { + cd torrentzip + + make check +} + +package() { + cd torrentzip + + make DESTDIR="$pkgdir" install + + ln -s trrntzip "${pkgdir}/usr/bin/torrentzip" + + install -D -m755 util/purgecruft.py -t "${pkgdir}/usr/bin" + dos2unix "${pkgdir}/usr/bin/purgecruft.py" + sed -i '1s/$/2/' "${pkgdir}/usr/bin/purgecruft.py" +} |