summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2015-06-18 18:02:13 +0200
committeranthraxx2015-06-18 18:02:13 +0200
commit57db8329a8428cd3e8c1fa49f172bfbe267a852d (patch)
treef677f629ef82b01066f7434d2b63ea508f1b4fca
downloadaur-57db8329a8428cd3e8c1fa49f172bfbe267a852d.tar.gz
addpkg: ropper-git 1.5.2.122.d950ffd-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..88c5ef93019
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ropper-git
+ pkgdesc = Show information about binary files and find gadgets to build rop chains for different architectures
+ pkgver = 1.5.2.122.d950ffd
+ pkgrel = 1
+ url = https://github.com/sashs/Ropper
+ arch = any
+ license = GPL2
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python-capstone
+ depends = sqlite
+ provides = ropper
+ conflicts = ropper
+ source = ropper-git::git+https://github.com/sashs/Ropper
+ sha512sums = SKIP
+
+pkgname = ropper-git
+
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: