aports/testing/zydis/APKBUILD
Bart Ribbers 44ce39a091 */*: remove unnecessary --output-on-failure
We set OUTPUT_ON_FAILURE by default nowadays so this argument is
unnecessary
2025-03-19 15:41:30 +00:00

42 lines
1.2 KiB
Text

# Contributor: Michael M <mic@hael.xyz>
# Maintainer: Michael M <mic@hael.xyz>
pkgname=zydis
pkgver=4.1.0
pkgrel=0
pkgdesc="Fast and lightweight x86/x86-64 disassembler and code generation library"
url="https://zydis.re"
arch="x86 x86_64 aarch64 armhf armv7"
license="MIT"
depends_dev="zycore-dev"
makedepends="cmake samurai doxygen zycore-dev"
checkdepends="python3"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/zyantific/zydis/archive/v$pkgver/zydis-$pkgver.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZYDIS_BUILD_SHARED_LIB=ON \
-DCMAKE_BUILD_TYPE=None \
-DZYAN_SYSTEM_ZYCORE=ON \
-DPACKAGE_PREFIX_DIR=/usr \
-DZYDIS_BUILD_TESTS="$(want_check && echo ON || echo OFF)" \
$crossopts
cmake --build build
}
check() {
ctest --test-dir build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
e07add4d43768ded02a238911fde6e74d2391abf8df282f774fca1a8c3fca3e97b03e90e0f3c7c0f3c75485fb29c0be4071d5e5b2e23dd5b8b1a864e3b713fbc zydis-4.1.0.tar.gz
"