[arch-commits] Commit in capstone/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 16:55:40 UTC 2018
Date: Saturday, June 30, 2018 @ 16:55:40
Author: felixonmars
Revision: 348590
archrelease: copy trunk to community-staging-x86_64
Added:
capstone/repos/community-staging-x86_64/
capstone/repos/community-staging-x86_64/PKGBUILD
(from rev 348589, capstone/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: capstone/repos/community-staging-x86_64/PKGBUILD (from rev 348589, capstone/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-06-30 16:55:40 UTC (rev 348590)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: M0Rf30
+
+pkgbase=capstone
+pkgname=('capstone' 'python-capstone' 'python2-capstone')
+pkgver=3.0.4
+pkgrel=6
+pkgdesc='A lightweight multi-platform, multi-architecture disassembly framework'
+url='http://www.capstone-engine.org/index.html'
+arch=('x86_64')
+license=('BSD')
+makedepends=('glibc' 'python' 'python2')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/aquynh/capstone/archive/${pkgver}.tar.gz)
+sha512sums=('a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d')
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ make
+}
+
+package_capstone() {
+ depends=('glibc')
+ cd ${pkgbase}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-capstone() {
+ depends=('capstone' 'python')
+ cd ${pkgbase}-${pkgver}/bindings/python
+ python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+ install -Dm 644 ../../LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-capstone() {
+ depends=('capstone' 'python2')
+ cd ${pkgbase}-${pkgver}/bindings/python
+ python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr
+ install -Dm 644 ../../LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list