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 | |
download | aur-python-formatstring-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..51f54043d2a6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-formatstring-git + pkgdesc = Format string exploitation helper + pkgver = 1.1.r0.g321baf7 + pkgrel = 1 + url = https://github.com/arthaud/formatstring + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python + optdepends = python-pyelftools: infer the architecture from a binary file + source = python-formatstring-git::git://github.com/arthaud/formatstring.git + md5sums = SKIP + +pkgname = python-formatstring-git + 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 +} |