summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoranthraxx2015-06-18 18:02:13 +0200
committeranthraxx2015-06-18 18:02:13 +0200
commit57db8329a8428cd3e8c1fa49f172bfbe267a852d (patch)
treef677f629ef82b01066f7434d2b63ea508f1b4fca /PKGBUILD
downloadaur-57db8329a8428cd3e8c1fa49f172bfbe267a852d.tar.gz
addpkg: ropper-git 1.5.2.122.d950ffd-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10104c2bde8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=ropper-git
+pkgver=1.5.2.122.d950ffd
+pkgrel=1
+pkgdesc="Show information about binary files and find gadgets to build rop chains for different architectures"
+arch=('any')
+url="https://github.com/sashs/Ropper"
+license=('GPL2')
+depends=('python-capstone' 'sqlite')
+makedepends=('git' 'python-setuptools')
+provides=('ropper')
+conflicts=('ropper')
+source=(${pkgname}::git+https://github.com/sashs/Ropper)
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf "%s.%s.%s" "$(python setup.py --version)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd ${pkgname}
+ python setup.py build
+}
+
+package() {
+ cd ${pkgname}
+ python setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et: