[arch-commits] Commit in keystone/repos (4 files)
Levente Polyak
anthraxx at archlinux.org
Wed Jun 1 01:29:09 UTC 2016
Date: Wednesday, June 1, 2016 @ 03:29:09
Author: anthraxx
Revision: 177574
archrelease: copy trunk to community-i686, community-x86_64
Added:
keystone/repos/community-i686/
keystone/repos/community-i686/PKGBUILD
(from rev 177573, keystone/trunk/PKGBUILD)
keystone/repos/community-x86_64/
keystone/repos/community-x86_64/PKGBUILD
(from rev 177573, keystone/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 75 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 75 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 150 insertions(+)
Copied: keystone/repos/community-i686/PKGBUILD (from rev 177573, keystone/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-06-01 01:29:09 UTC (rev 177574)
@@ -0,0 +1,75 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=keystone
+pkgname=('keystone' 'python-keystone' 'python2-keystone')
+pkgver=0.9
+pkgrel=1
+pkgdesc='Lightweight multi-platform, multi-architecture assembler framework'
+url='http://www.keystone-engine.org/'
+arch=('i686' 'x86_64')
+license=('GPL2')
+makedepends=('cmake' 'gcc-libs' 'python' 'python2')
+options=('staticlibs' '!emptydirs')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/keystone-engine/keystone/archive/${pkgver}.tar.gz)
+sha512sums=('170f8f73a7cdd8f049cda3fbc49b968d8ca8a524bbf8ca161a52be4f3c55003b7afd1df8fc118b7838a8484f6128d180f08f09d7a0dcb2c72c3d2009fd59684d')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ mkdir build-shared build-static
+ (cd build-shared
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON \
+ -DLLVM_TARGETS_TO_BUILD=all \
+ -G "Unix Makefiles" ..
+ )
+ (cd build-static
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DLLVM_TARGETS_TO_BUILD=all \
+ -G "Unix Makefiles" ..
+ )
+ cp -ra bindings/python{,2}
+ sed -r 's|(python)$|\12|' -i bindings/python2/sample.py
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ make -C build-shared
+ make -C build-static
+ (cd bindings/python
+ python setup.py build
+ )
+ (cd bindings/python2
+ python2 setup.py build
+ )
+}
+
+package_keystone() {
+ depends=('gcc-libs')
+ cd ${pkgbase}-${pkgver}
+ make -C build-shared DESTDIR="${pkgdir}" install
+ make -C build-static DESTDIR="${pkgdir}" install
+ install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+package_python-keystone() {
+ depends=('python' 'keystone')
+ license=('BSD')
+ cd ${pkgbase}-${pkgver}/bindings/python
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 755 sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-keystone() {
+ depends=('python2' 'keystone')
+ license=('BSD')
+ cd ${pkgbase}-${pkgver}/bindings/python2
+ python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 755 sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
Copied: keystone/repos/community-x86_64/PKGBUILD (from rev 177573, keystone/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2016-06-01 01:29:09 UTC (rev 177574)
@@ -0,0 +1,75 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=keystone
+pkgname=('keystone' 'python-keystone' 'python2-keystone')
+pkgver=0.9
+pkgrel=1
+pkgdesc='Lightweight multi-platform, multi-architecture assembler framework'
+url='http://www.keystone-engine.org/'
+arch=('i686' 'x86_64')
+license=('GPL2')
+makedepends=('cmake' 'gcc-libs' 'python' 'python2')
+options=('staticlibs' '!emptydirs')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/keystone-engine/keystone/archive/${pkgver}.tar.gz)
+sha512sums=('170f8f73a7cdd8f049cda3fbc49b968d8ca8a524bbf8ca161a52be4f3c55003b7afd1df8fc118b7838a8484f6128d180f08f09d7a0dcb2c72c3d2009fd59684d')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ mkdir build-shared build-static
+ (cd build-shared
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON \
+ -DLLVM_TARGETS_TO_BUILD=all \
+ -G "Unix Makefiles" ..
+ )
+ (cd build-static
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DLLVM_TARGETS_TO_BUILD=all \
+ -G "Unix Makefiles" ..
+ )
+ cp -ra bindings/python{,2}
+ sed -r 's|(python)$|\12|' -i bindings/python2/sample.py
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ make -C build-shared
+ make -C build-static
+ (cd bindings/python
+ python setup.py build
+ )
+ (cd bindings/python2
+ python2 setup.py build
+ )
+}
+
+package_keystone() {
+ depends=('gcc-libs')
+ cd ${pkgbase}-${pkgver}
+ make -C build-shared DESTDIR="${pkgdir}" install
+ make -C build-static DESTDIR="${pkgdir}" install
+ install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples"
+}
+
+package_python-keystone() {
+ depends=('python' 'keystone')
+ license=('BSD')
+ cd ${pkgbase}-${pkgver}/bindings/python
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 755 sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-keystone() {
+ depends=('python2' 'keystone')
+ license=('BSD')
+ cd ${pkgbase}-${pkgver}/bindings/python2
+ python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 755 sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+ 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