diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-06-18 16:15:23 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-06-18 16:25:54 +0200 |
commit | 0f499a06c031c75596c004d7d0e8982f36ec2bd5 (patch) | |
tree | 0767cb3007c1161e868c0418a1ee2fefb76e58b9 /testing/capstone | |
parent | 82a4fbd003b6121cef0411e876b4b7a8c51cf24d (diff) | |
download | aports-0f499a06c031c75596c004d7d0e8982f36ec2bd5.tar.bz2 aports-0f499a06c031c75596c004d7d0e8982f36ec2bd5.tar.xz |
testing/capstone: modernize APKBUILD
Diffstat (limited to 'testing/capstone')
-rw-r--r-- | testing/capstone/APKBUILD | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/testing/capstone/APKBUILD b/testing/capstone/APKBUILD index 2967a12b62..81540a021f 100644 --- a/testing/capstone/APKBUILD +++ b/testing/capstone/APKBUILD @@ -14,22 +14,27 @@ install="" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/aquynh/$pkgname/archive/$pkgver.tar.gz $pkgname.pc" - -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" - cmake CMakeLists.txt \ + cd "$builddir" + cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCAPSTONE_BUILD_STATIC=OFF \ - || return 1 - make || return 1 + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DCAPSTONE_BUILD_STATIC=OFF + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - install -Dm644 "$srcdir"/$pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc + cd "$builddir" + make DESTDIR="$pkgdir" install + install -Dm644 "$srcdir"/$pkgname.pc \ + "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc + sed -i \ -e "s/#pkgname/$pkgname/" \ -e "s/#pkgdesc/$pkgdesc/" \ @@ -37,9 +42,5 @@ package() { "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc } -md5sums="203a3593552afd844b0d7da0f56d21d2 capstone-3.0.4.tar.gz -bcbbe0e5250a246705668638778b9a29 capstone.pc" -sha256sums="5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 capstone-3.0.4.tar.gz -6bfbcd218a9f25ad1b30a45ec698cbfb0c41cf17202bd034d7d4057eafa9c4cd capstone.pc" sha512sums="a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d capstone-3.0.4.tar.gz 87eacef80df36be18fe86f540a452b7e290c9dfc85d01c7926d263f2e5060f6d5fd6a6c68c350caf532f4926902a77fba24e59cb5e9b606be9706980ae4c8235 capstone.pc" |