diff options
author | anthraxx | 2015-06-18 18:02:33 +0200 |
---|---|---|
committer | anthraxx | 2015-06-18 18:02:33 +0200 |
commit | fb75669a5e1c5164af69265860c55226d8643e44 (patch) | |
tree | 36083afc423f8efb12a66648f2c803eb9cf27329 | |
download | aur-fb75669a5e1c5164af69265860c55226d8643e44.tar.gz |
addpkg: xortool 0.96-2
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f878741291d9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = xortool + pkgdesc = A tool to analyze multi-byte XOR cipher + pkgver = 0.96 + pkgrel = 2 + url = https://github.com/hellman/xortool + arch = any + license = MIT + depends = python2 + source = xortool-0.96.tar.gz::https://github.com/hellman/xortool/archive/v0.96.tar.gz + sha512sums = ff8745a337fc376aa3aab0737626fd542c6b2d0abbb098c548ae7d318693bc45f2ed0e5b5635b15841a3cc42127d759514b31a1989404b3980eb0c67993d220e + +pkgname = xortool + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0465aa03c598 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net> + +pkgname=xortool +pkgver=0.96 +pkgrel=2 +pkgdesc="A tool to analyze multi-byte XOR cipher" +url="https://github.com/hellman/xortool" +depends=('python2') +arch=('any') +license=('MIT') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/hellman/${pkgname}/archive/v${pkgver}.tar.gz) +sha512sums=('ff8745a337fc376aa3aab0737626fd542c6b2d0abbb098c548ae7d318693bc45f2ed0e5b5635b15841a3cc42127d759514b31a1989404b3980eb0c67993d220e') + +prepare() { + cd ${pkgname}-${pkgver} + sed -e 's|env python$|env python2|g' -i xortool/* +} + +build() { + cd ${pkgname}-${pkgver} + python2 setup.py build +} + +package() { + cd ${pkgname}-${pkgver} + python2 setup.py install -O1 --prefix="${pkgdir}/usr" + install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README" +} + +# vim: ts=2 sw=2 et: |