diff options
author | Maxime Arthaud | 2015-11-05 14:36:12 +0100 |
---|---|---|
committer | Maxime Arthaud | 2015-11-05 14:36:12 +0100 |
commit | 7fadd30988983e04f1c69f09044ed41141b6cb48 (patch) | |
tree | 1a182dd7af9bd4fe96c68052eed0b9a633ad5f7b /PKGBUILD | |
download | aur-python-formatstring-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..586cf1f8d680 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Maxime Arthaud <maxime@arthaud.me> + +pkgname=python-formatstring-git +pkgver=1.1.r0.g321baf7 +pkgrel=1 +pkgdesc="Format string exploitation helper" +arch=('any') +url="https://github.com/arthaud/formatstring" +license=('MIT') +depends=('python') +makedepends=('git' 'python-setuptools') +optdepends=('python-pyelftools: infer the architecture from a binary file') +source=("$pkgname::git://github.com/arthaud/formatstring.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//' +} + +build() { + cd "$srcdir/$pkgname" + python setup.py build +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install -f --root="$pkgdir" + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |