arch-pkgs/dynarmic/PKGBUILD

61 lines
1.3 KiB
Text
Raw Normal View History

2022-10-10 08:08:50 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Alexandre Bouvier <contact@amb.tf>
pkgname=dynarmic
2023-01-03 23:14:32 +00:00
pkgver=6.4.3
2022-10-10 08:08:50 +00:00
pkgrel=1
pkgdesc='An ARM dynamic recompiler'
arch=('x86_64')
url='https://github.com/merryhime/dynarmic'
license=('BSD')
2022-11-22 21:09:23 +00:00
depends=('gcc-libs' 'fmt' 'zydis')
2022-10-10 08:08:50 +00:00
makedepends=(
'git'
'boost'
'cmake'
'robin-map'
'xbyak'
'neovim'
)
checkdepends=('catch2')
2023-01-03 23:14:32 +00:00
_commit='a1cbea7948372989218a4e6159a95998d65876a2'
2022-10-10 08:08:50 +00:00
source=("$pkgname::git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() {
cmake \
-B build \
-S "$pkgname" \
2022-11-22 21:09:23 +00:00
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D DYNARMIC_IGNORE_ASSERTS=ON \
-D DYNARMIC_NO_BUNDLED_CATCH=ON \
-D DYNARMIC_NO_BUNDLED_FMT=ON \
-D DYNARMIC_NO_BUNDLED_ROBIN_MAP=ON \
-D DYNARMIC_NO_BUNDLED_XBYAK=ON \
-D DYNARMIC_NO_BUNDLED_ZYDIS=ON \
-D DYNARMIC_TESTS="$CHECKFUNC" \
-W no-dev
2022-10-10 08:08:50 +00:00
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname/LICENSE.txt"
}