Package Details: box64 0.3.2-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.000028
First Submitted: 2021-08-31 07:59 (UTC)
Last Updated: 2024-12-11 12:21 (UTC)

Latest Comments

1 2 Next › Last »

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.

Popolon commented on 2022-11-24 12:23 (UTC)

Build it again using your PKGBUILD (about the same rules) and it works too :). Thank you very much!!

mogwai commented on 2022-11-23 08:31 (UTC)

@Popolon: I added riscv64. Can you test this? I don't have riscv64 hardware, so I can't test it myself.

Popolon commented on 2022-11-22 00:20 (UTC) (edited on 2022-11-22 14:18 (UTC) by Popolon)

Please, add for riscv64 support (it works on RISCV64 after my tests):

arch=('x86_64' 'aarch64' 'riscv64')

in the build()

    elif [[ $CARCH == "riscv64" ]]; then
    cmake -B build -S . \
          -DRV64=1 \
          -DCMAKE_BUILD_TYPE=RelWithDebInfo \
              -DCMAKE_INSTALL_PREFIX=/usr

and in the package()

    elif [[ $CARCH == "riscv64" ]]; then
      make DESTDIR=${pkgdir} install

bradpitcher commented on 2022-09-29 15:42 (UTC) (edited on 2022-09-29 15:43 (UTC) by bradpitcher)

So odd, I also had a build failure using yay

make[2]: Entering directory '/home/brad/.cache/yay/box64/src/box64-0.1.8/build'
make[2]: *** No rule to make target '/home/brad/_private.hache/yay/box64/src/box64-0.1.8/src/wrapped/wrappedvulkan_private.h', needed by '/home/brad/.cache/yay/box64/src/box64-0.1.8/src/wrapped/generated/functions_list.txt'.  Stop.
make[2]: Leaving directory '/home/brad/.cache/yay/box64/src/box64-0.1.8/build'
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/WRAPPERS.dir/all] Error 2
make[1]: Leaving directory '/home/brad/.cache/yay/box64/src/box64-0.1.8/build'
make: *** [Makefile:166: all] Error 2
make: Leaving directory '/home/brad/.cache/yay/box64/src/box64-0.1.8/build'
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: box64

But manually cloning the repo and running makepkg it worked ¯\_(ツ)_/¯

mogwai commented on 2021-12-08 11:01 (UTC)

@danielmazurkiewi: Sorry, cannot reproduce, it works perfectly fine for me.

Two things: - Please only report errors that occur when building packages through makepkg. AUR helpers like yay are not supported. - Please add more information if you want to have people debug a potential issue. The quoted lines are printed due to an error during building of the package. That only happens when it's triggered by an error of the actual build process. That's the error you want to look for and solve.