diff options
| author | bbbruni <77002160+bbbruni@users.noreply.github.com> | 2021-10-21 22:37:11 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-21 22:37:11 +0300 |
| commit | b6764d1d6f56f4ec177e539a8edd394d91240bef (patch) | |
| tree | f848bee732b946ff2d2be8d93febda524e1c470b | |
| parent | d5e105ce620863f11d3ef6b53bf14beca97b4f80 (diff) | |
| download | box64-b6764d1d6f56f4ec177e539a8edd394d91240bef.tar.gz box64-b6764d1d6f56f4ec177e539a8edd394d91240bef.zip | |
Add debug version of PKGBUILD-arm64
| -rw-r--r-- | pkgbuilds/PKGBUILD-arm64-DEBUG | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgbuilds/PKGBUILD-arm64-DEBUG b/pkgbuilds/PKGBUILD-arm64-DEBUG new file mode 100644 index 00000000..c2f289dd --- /dev/null +++ b/pkgbuilds/PKGBUILD-arm64-DEBUG @@ -0,0 +1,44 @@ +# Maintainer: Jai-JAP <parjailu@gmail.com> +# Author: Sebastien Chevalier <ptitseb@box86.org> +pkgname=box64-arm64-git +pkgver=1116.9243ea4 +pkgrel=1 +pkgdesc="Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices." +arch=('aarch64') +url="https://github.com/ptitSeb/box64" +license=('MIT') +optdepends=('gl4es: OpenGL 2 for GLES 2 devices') +makedepends=('git' 'cmake' 'make') +provides=("${pkgname%-git}" "${pkgname%-arm64-git}-git" "${pkgname%-arm64-git}") +conflicts=("${pkgname%-git}" "${pkgname%-arm64-git}-git" "${pkgname%-arm64-git}") +source=('git+https://github.com/ptitSeb/box64') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-arm64-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${pkgname%-arm64-git}" + if [[ ! -d ./build ]]; then + mkdir build && cd build + cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo + fi +} + +build() { + cd "$srcdir/${pkgname%-arm64-git}/build" + make -j$(nproc) +} + +package() { + cd "$srcdir/${pkgname%-arm64-git}/build" + make DESTDIR="${pkgdir}/" install + # /usr/local/bin isn't in PATH by the default, + # we should move it to /usr/bin + cd ${pkgdir} + mv usr/local/bin/ usr/bin/ + # cleanup when dir is empty + rmdir usr/local || exit 0 +} |