pkg-box64-sd8g2-git/PKGBUILD
Molly Sophia cd18e5e719
Some checks failed
gitea/pkg-box64-sd8g2-git/pipeline/head There was a failure building this commit
Update PKGBUILD
2023-12-30 04:38:46 +00:00

52 lines
1.3 KiB
Bash

# Maintainer: Bart De Vries <bart at mogwai dot be>
_pkgname=box64
pkgname=${_pkgname}-sd8g2-git
pkgver=v0.2.6.r62.gdba6a883
pkgrel=1
pkgdesc='Linux Userspace x86_64 Emulator with a twist'
arch=('aarch64')
url='https://github.com/ptitSeb/box64'
license=('MIT')
install="box64-git.install"
depends=('gcc-libs')
#optdepends=('')
makedepends=('git' 'cmake' 'python')
provides=(box64)
conflicts=(box64)
source=("git+https://github.com/ptitSeb/box64.git#branch=main"
"box64-git.install")
sha256sums=('SKIP'
'7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2')
pkgver() {
cd ${_pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${_pkgname}
if [[ $CARCH == "aarch64" ]]; then
cmake -B build -S . \
-DARM_DYNAREC=ON \
-DSD8G2=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
fi
make -C build
}
package() {
cd ${_pkgname}/build
if [[ $CARCH == "aarch64" ]]; then
make DESTDIR=${pkgdir} install
fi
install -Dm644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}/"
# Install documentation
install -d "${pkgdir}/usr/share/doc/${_pkgname}/"
cp -R ../docs/* "${pkgdir}/usr/share/doc/${_pkgname}/"
}