summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2015-06-18 18:02:08 +0200
committeranthraxx2015-06-18 18:02:08 +0200
commit92b63a6e07dfc26e8edd0d954c336c54e89a968b (patch)
tree130496f5a145fb73d02c7b1a69bd28c8b42f99c2
downloadaur-92b63a6e07dfc26e8edd0d954c336c54e89a968b.tar.gz
addpkg: qira 1.1-1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD46
-rw-r--r--qira.install1
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ce55da94867
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = qira
+ pkgdesc = QEMU Interactive Runtime Analyser
+ pkgver = 1.1
+ pkgrel = 1
+ url = https://github.com/BinaryAnalysisPlatform/qira
+ arch = x86_64
+ arch = i686
+ license = GPL2
+ makedepends = python2-setuptools
+ depends = qemu
+ depends = python2-ipaddr
+ depends = python2-flask-socketio
+ depends = python2-pillow
+ depends = python2-capstone
+ depends = python2-pydot
+ depends = python2-pyelftools
+ source = https://github.com/BinaryAnalysisPlatform/qira/raw/master/releases/qira-1.1.tar.xz
+ sha512sums = 11ee4d9390a28825342fe9921633aad186eebe05f2aeb875378aec193e5cb62ca8807869eeb751c8f8c0d8806e33640a6ed468d274e14ebc92b935a7e358c923
+
+pkgname = qira
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f609371364
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
+
+pkgname=qira
+pkgver=1.1
+pkgrel=1
+pkgdesc='QEMU Interactive Runtime Analyser'
+url='https://github.com/BinaryAnalysisPlatform/qira'
+arch=('x86_64' 'i686')
+license=('GPL2')
+depends=('qemu' 'python2-ipaddr' 'python2-flask-socketio' 'python2-pillow' 'python2-capstone' 'python2-pydot' 'python2-pyelftools')
+makedepends=('python2-setuptools')
+source=(https://github.com/BinaryAnalysisPlatform/${pkgname}/raw/master/releases/${pkgname}-${pkgver}.tar.xz)
+sha512sums=('11ee4d9390a28825342fe9921633aad186eebe05f2aeb875378aec193e5cb62ca8807869eeb751c8f8c0d8806e33640a6ed468d274e14ebc92b935a7e358c923')
+
+prepare() {
+ cd ${pkgname}
+ find . -type d -print0 | xargs -0 chmod +rx
+ find . -type f -print0 | xargs -0 chmod +r
+ find . -type f -executable -print0 | xargs -0 chmod +x
+}
+
+build() {
+ cd ${pkgname}/qiradb
+ python2 setup.py build
+}
+
+package() {
+ cd ${pkgname}
+
+ pushd qiradb
+ python2 setup.py install -O1 --single-version-externally-managed --root="${pkgdir}"
+ popd
+
+ mv qiradb/VERSION VERSION
+ rm -r qiradb
+
+ install -d "${pkgdir}/opt/${pkgname}"
+ cp -r . "${pkgdir}/opt/${pkgname}"
+
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+ install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/qira.install b/qira.install
new file mode 100644
index 00000000000..7f586c719e1
--- /dev/null
+++ b/qira.install
@@ -0,0 +1 @@
+remove opt dir