summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD54
1 files changed, 23 insertions, 31 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0755f27c744..3f1c4fb720a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>
pkgname=peda-git
-pkgver=45.d0bd978
-pkgrel=2
+pkgver=68.69068b0
+pkgrel=1
pkgdesc="PEDA - Python Exploit Development Assistance for GDB"
+url='https://github.com/longld/peda'
arch=('any')
-url="https://github.com/longld/peda"
-license=('Creative Commons')
-depends=( 'gdb' 'python2')
+license=('custom:Creative Commons')
+depends=( 'gdb' 'python2' 'binutils' 'nasm')
makedepends=('git')
-source=('git+http://github.com/longld/peda')
-md5sums=('SKIP')
-install="peda.install"
+provides=('peda')
+conflicts=('peda')
+install='peda.install'
+source=(${pkgname}::git+https://github.com/longld/peda)
+sha512sums=('SKIP')
pkgver() {
- cd peda
+ cd ${pkgname}
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+build() {
+ cd ${pkgname}
+ python2 -m compileall .
+ python2 -O -m compileall .
+}
package() {
- install -D -m755 "${srcdir}/peda/peda.py" \
- "${pkgdir}/usr/share/peda/peda.py"
- install -D -m644 "${srcdir}/peda/LICENSE" \
- "${pkgdir}/usr/share/peda/LICENSE"
- install -D -m644 "${srcdir}/peda/README" \
- "${pkgdir}/usr/share/peda/README"
- install -D -m755 "${srcdir}/peda/lib/config.py" \
- "${pkgdir}/usr/share/peda/lib/config.py"
- install -D -m755 "${srcdir}/peda/lib/nasm.py" \
- "${pkgdir}/usr/share/peda/lib/nasm.py"
- install -D -m755 "${srcdir}/peda/lib/shellcode.py" \
- "${pkgdir}/usr/share/peda/lib/shellcode.py"
- install -D -m755 "${srcdir}/peda/lib/skeleton.py" \
- "${pkgdir}/usr/share/peda/lib/skeleton.py"
- install -D -m755 "${srcdir}/peda/lib/utils.py" \
- "${pkgdir}/usr/share/peda/lib/utils.py"
-
-
-
-
+ cd ${pkgname}
+ install -Dm 644 peda.py* -t "${pkgdir}/usr/share/peda"
+ install -Dm 644 lib/* -t "${pkgdir}/usr/share/peda/lib"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
-
-# vim:set ts=2 sts=2 sw=2 et
+# vim: ts=2 sw=2 et: