From 71093c15c443dc7c5457d157aeb479f4e691753e Mon Sep 17 00:00:00 2001 From: Molly Sophia Date: Sat, 30 Dec 2023 04:35:11 +0000 Subject: [PATCH] Modify PKGBUILD for sd8g2 Signed-off-by: Molly Sophia --- .SRCINFO | 8 +++----- PKGBUILD | 21 ++++----------------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index a38194b..533b522 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,12 +1,10 @@ -pkgbase = box64-git +pkgbase = box64-sd8g2-git pkgdesc = Linux Userspace x86_64 Emulator with a twist - pkgver = v0.2.2.r2.g706ebc39 + pkgver = v0.2.6.r62.gdba6a883 pkgrel = 1 url = https://github.com/ptitSeb/box64 install = box64-git.install - arch = x86_64 arch = aarch64 - arch = riscv64 license = MIT makedepends = git makedepends = cmake @@ -19,4 +17,4 @@ pkgbase = box64-git sha256sums = SKIP sha256sums = 7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2 -pkgname = box64-git +pkgname = box64-sd8g2-git diff --git a/PKGBUILD b/PKGBUILD index 716e7ee..5730de4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,11 +1,11 @@ # Maintainer: Bart De Vries -_pkgname=box64 +_pkgname=box64-sd8g2 pkgname=${_pkgname}-git -pkgver=v0.2.2.r2.g706ebc39 +pkgver=v0.2.6.r62.gdba6a883 pkgrel=1 pkgdesc='Linux Userspace x86_64 Emulator with a twist' -arch=('x86_64' 'aarch64' 'riscv64') +arch=('aarch64') url='https://github.com/ptitSeb/box64' license=('MIT') install="box64-git.install" @@ -29,16 +29,7 @@ build() { if [[ $CARCH == "aarch64" ]]; then cmake -B build -S . \ -DARM_DYNAREC=ON \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr - elif [[ $CARCH == "x86_64" ]]; then - cmake -B build -S . \ - -DLD80BITS=1 -DNOALIGN=1 \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX=/usr - elif [[ $CARCH == "riscv64" ]]; then - cmake -B build -S . \ - -DRV64=1 \ + -DSD8G2=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr fi @@ -49,10 +40,6 @@ package() { cd ${_pkgname}/build if [[ $CARCH == "aarch64" ]]; then make DESTDIR=${pkgdir} install - elif [[ $CARCH == "x86_64" ]]; then - install -Dm755 box64 -t "${pkgdir}/usr/bin/" - elif [[ $CARCH == "riscv64" ]]; then - make DESTDIR=${pkgdir} install fi install -Dm644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}/"