Package Details: box64 0.3.4-2

Git Clone URL: https://aur.archlinux.org/box64.git (read-only, click to copy)
Package Base: box64
Description: Linux Userspace x86_64 Emulator with a twist
Upstream URL: https://github.com/ptitSeb/box64
Keywords: emulator
Licenses: MIT
Submitter: mogwai
Maintainer: mogwai
Last Packager: mogwai
Votes: 5
Popularity: 0.000007
First Submitted: 2021-08-31 07:59 (UTC)
Last Updated: 2025-03-24 12:32 (UTC)

Latest Comments

1 2 Next › Last »

luziferius commented on 2025-03-24 09:33 (UTC)

The recent addition of SoC detection is locale-dependent, because lscpu output is localized. It'll likely break on most non-English systems. This patch fixes the detection on non-English systems.

diff --git a/PKGBUILD b/PKGBUILD
index e35f153..7f68bd0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,7 @@ sha256sums=('081224cd27f5fa67fe4e9034ebbe0076e1da51b0f11bf84b67494752c7090d72'
 build() {
     cd ${pkgname}-${pkgver}
     if [[ $CARCH == "aarch64" ]]; then
-        name="$(lscpu | grep Model)"
+        name="$(LC_ALL=C lscpu | grep Model)"
         exargs=""
         if [ -n "$(echo $name | grep RK3588)" ]; then
               exargs="-DRK3588=1"

simona commented on 2025-02-23 20:33 (UTC)

sorry, was boxtron and luxtorpeda

mogwai commented on 2025-02-23 20:30 (UTC)

@simona: Why would this conflict with steam?

simona commented on 2025-02-23 17:42 (UTC)

conflict with steam

Noshricardo commented on 2025-01-26 21:14 (UTC) (edited on 2025-01-26 21:14 (UTC) by Noshricardo)

This patch uses box64 compile flags for RK3588/RK3588S and RK3399, This might not be the best way to do this, but it shouldn't break anything if not using these SOCs, or if it fails to detect them. It should also work for other SOCs by just adding more if statements for each SOC. This has only been tested on RK3588S with BreadOS on the Khadas Edge2

diff --git a/PKGBUILD b/PKGBUILD
index 3e387fb..0617eea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,9 +16,17 @@ source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ptitSeb/${pkgname}/arch
 sha256sums=('8658b2c3840ae830ebb2b2673047d30a748139ec3afe178ca74a71adeddba63e'
             '7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2')
 build() {
+    name="$(lscpu | grep Model)"
     cd ${pkgname}-${pkgver}
-    if [[ $CARCH == "aarch64" ]]; then 
+    if [[ $CARCH == "aarch64" ]]; then
+        exargs=""
+        if [ -n "$(echo $name | grep RK3588)" ]; then
+              exargs="-DRK3588=1"
+        elif [ -n "$(echo $name | grep RK3399)" ]; then
+              exargs="-DRK3399=1"
+        fi
         cmake -B build -S . \
+              $exargs \
               -DARM_DYNAREC=ON \
               -DCMAKE_BUILD_TYPE=RelWithDebInfo \
               -DCMAKE_INSTALL_PREFIX=/usr

bobpaul commented on 2024-12-10 03:10 (UTC)

The following patch allows it to build on ppc64le. I used a 4k kernel and was able to play "AndYetItMoves", though it was quit slow.

diff --git a/PKGBUILD b/PKGBUILD
index 0819390..1512e90 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=box64
 pkgver=0.3.2
 pkgrel=1
 pkgdesc='Linux Userspace x86_64 Emulator with a twist'
-arch=('x86_64' 'aarch64' 'riscv64')
+arch=('x86_64' 'aarch64' 'riscv64' 'powerpc64le')
 url='https://github.com/ptitSeb/box64'
 license=('MIT')
 install="box64.install"
@@ -27,6 +27,11 @@ build() {
               -DLD80BITS=1 -DNOALIGN=1 \
               -DCMAKE_BUILD_TYPE=RelWithDebInfo \
               -DCMAKE_INSTALL_PREFIX=/usr
+    elif [[ $CARCH == "powerpc64le" ]]; then
+        cmake -B build -S . \
+              -DPPC64LE=1 \
+              -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+              -DCMAKE_INSTALL_PREFIX=/usr
     elif [[ $CARCH == "riscv64" ]]; then
         cmake -B build -S . \
               -DRV64=1 \
@@ -42,6 +47,9 @@ package() {
       make DESTDIR=${pkgdir} install
     elif [[ $CARCH == "x86_64" ]]; then
       install -Dm755 box64 -t "${pkgdir}/usr/bin/"
+    elif [[ $CARCH == "powerpc64le" ]]; then
+      make DESTDIR=${pkgdir} install
+    fi
     elif [[ $CARCH == "riscv64" ]]; then
       make DESTDIR=${pkgdir} install
     fi

mogwai commented on 2024-07-11 18:15 (UTC)

@PseudoSpock: Thanks for the notification. I'm AFK right now. Will update in a few days.

PseudoSpock commented on 2024-07-11 04:03 (UTC)

Got 0.3.0 to build. Just tested it with Zoom, which still works.

Here's my git diff to the PKGBUILD:

diff --git a/.SRCINFO b/.SRCINFO
index 6202938..45f05c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = box64
        pkgdesc = Linux Userspace x86_64 Emulator with a twist
-       pkgver = 0.2.8
+       pkgver = 0.3.0
        pkgrel = 1
        url = https://github.com/ptitSeb/box64
        install = box64.install
@@ -12,9 +12,9 @@ pkgbase = box64
        makedepends = cmake
        makedepends = python
        depends = gcc-libs
-       source = box64-0.2.8.tar.gz::https://github.com/ptitSeb/box64/archive/v0.2.8.tar.gz
+       source = box64-0.3.0.tar.gz::https://github.com/ptitSeb/box64/archive/v0.3.0.tar.gz
        source = box64.install
-       sha256sums = c3cd67d253de617487fc921270045246ec46a8f5ec310326734bb2246cb64903
+       sha256sums = e334e793638f375a28829c01b089c6ba27d8c3f6094fcbc9360b56ad9c09d0b5
        sha256sums = 7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2

 pkgname = box64
diff --git a/PKGBUILD b/PKGBUILD
index c19cc27..3a5ef45 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: Dan Johansen <strit@manjaro.org>

 pkgname=box64
-pkgver=0.2.8
+pkgver=0.3.0
 pkgrel=1
 pkgdesc='Linux Userspace x86_64 Emulator with a twist'
 arch=('x86_64' 'aarch64' 'riscv64')
@@ -13,7 +13,7 @@ depends=('gcc-libs')
 makedepends=('git' 'cmake' 'python')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ptitSeb/${pkgname}/archive/v${pkgver}.tar.gz"
         "box64.install")
-sha256sums=('c3cd67d253de617487fc921270045246ec46a8f5ec310326734bb2246cb64903'
+sha256sums=('e334e793638f375a28829c01b089c6ba27d8c3f6094fcbc9360b56ad9c09d0b5'
             '7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2')

 build() {

PseudoSpock commented on 2024-07-11 03:41 (UTC)

Version 0.3.0 was just released.

37h4n commented on 2023-01-25 23:32 (UTC) (edited on 2023-01-25 23:34 (UTC) by 37h4n)

For Asahi Linux users on M1, you'll need to go to PKGBUILD and replace -DARM_DYNAREC=ON with -DM1=1 under the if [[ $CARCH == "aarch64" ]]; then section, or else you'll get errors running programs.