[arch-commits] Commit in keystone/repos/community-staging-x86_64 (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 10 10:29:52 UTC 2019
Date: Sunday, November 10, 2019 @ 10:29:52
Author: foutrelis
Revision: 524956
archrelease: copy trunk to community-staging-x86_64
Added:
keystone/repos/community-staging-x86_64/PKGBUILD
(from rev 524955, keystone/trunk/PKGBUILD)
Deleted:
keystone/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 135 +++++++++++++++++++++++++++----------------------------------
1 file changed, 60 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-10 10:29:48 UTC (rev 524955)
+++ PKGBUILD 2019-11-10 10:29:52 UTC (rev 524956)
@@ -1,75 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-pkgbase=keystone
-pkgname=('keystone' 'python-keystone' 'python2-keystone')
-pkgver=0.9.1
-pkgrel=5
-pkgdesc='Lightweight multi-platform, multi-architecture assembler framework'
-url='https://www.keystone-engine.org/'
-arch=('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=('3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17')
-
-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-staging-x86_64/PKGBUILD (from rev 524955, keystone/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-10 10:29:52 UTC (rev 524956)
@@ -0,0 +1,60 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=keystone
+pkgname=('keystone' 'python-keystone')
+pkgver=0.9.1
+pkgrel=5
+pkgdesc='Lightweight multi-platform, multi-architecture assembler framework'
+url='https://www.keystone-engine.org/'
+arch=('x86_64')
+license=('GPL2')
+makedepends=('cmake' 'gcc-libs' 'python')
+options=('staticlibs' '!emptydirs')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/keystone-engine/keystone/archive/${pkgver}.tar.gz)
+sha512sums=('3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17')
+
+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" ..
+ )
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
+ make -C build-shared
+ make -C build-static
+ cd bindings/python
+ python 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"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list