2022-10-10 08:08:50 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
# Contributor: Alexandre Bouvier <contact@amb.tf>
|
|
|
|
|
|
|
|
pkgname=dynarmic
|
2023-02-06 01:55:56 +00:00
|
|
|
pkgver=6.4.5
|
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-02-06 01:55:56 +00:00
|
|
|
_commit='165621a872ffb802c7a26ef5900e1e62681f1a88'
|
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"
|
|
|
|
}
|