Skip to content

Commit edef6d7

Browse files
committed
Updated the PKGBUILDS
Improved old PKGBUILDs and added the PKGBUILD for the RK3399 targets.
1 parent 31e6ae0 commit edef6d7

8 files changed

+146
-60
lines changed

archlinux/PKGBUILD-arm

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-arm-git
44
pkgver=r2798.0edc0374
55
pkgrel=1
@@ -9,30 +9,36 @@ url="https://github.com/ptitSeb/box86"
99
license=('MIT')
1010
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1111
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
12+
provides=("${pkgname%-git}" "${_pkgname%-arm-git}-git" "${_pkgname%-arm-git}")
13+
conflicts=("${pkgname%-git}" "${_pkgname%-arm-git}-git" "${_pkgname%-arm-git}")
1414
source=('git+https://github.com/ptitSeb/box86')
1515
md5sums=('SKIP')
1616

1717
pkgver() {
18-
cd "$srcdir/${pkgname%-git}"
18+
cd "$srcdir/${pkgname%-arm-git}"
1919
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2020
}
2121

2222
prepare() {
23-
cd "${srcdir}/${pkgname%-git}"
23+
cd "${srcdir}/${pkgname%-arm-git}"
2424
if [[ ! -d ./build ]]; then
2525
mkdir build && cd build
2626
cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
2727
fi
2828
}
2929

3030
build() {
31-
cd "$srcdir/${pkgname%-git}/build"
31+
cd "$srcdir/${pkgname%-arm-git}/build"
3232
make -j$(nproc)
3333
}
3434

3535
package() {
36-
cd "$srcdir/${pkgname%-git}/build"
36+
cd "$srcdir/${pkgname%-arm-git}/build"
3737
make DESTDIR="${pkgdir}/" install
38+
# /usr/local/bin isn't in PATH by the default,
39+
# we should move it to /usr/bin
40+
cd ${pkgdir}
41+
mv usr/local/bin/ usr/bin/
42+
# cleanup when dir is empty
43+
rmdir usr/local || exit 0
3844
}

archlinux/PKGBUILD-gameshell

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-gameshell-git
44
pkgver=r2798.0edc0374
55
pkgrel=1
@@ -9,30 +9,36 @@ url="https://github.com/ptitSeb/box86"
99
license=('MIT')
1010
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1111
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
12+
provides=("${pkgname%-git}" "${pkgname%-gameshell-git}-git" "${pkgname%-gameshell-git}")
13+
conflicts=("${pkgname%-git}" "${pkgname%-gameshell-git}-git" "${pkgname%-gameshell-git}")
1414
source=('git+https://github.com/ptitSeb/box86')
1515
md5sums=('SKIP')
1616

1717
pkgver() {
18-
cd "$srcdir/${pkgname%-git}"
18+
cd "$srcdir/${pkgname%-gameshell-git}"
1919
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2020
}
2121

2222
prepare() {
23-
cd "${srcdir}/${pkgname%-git}"
23+
cd "${srcdir}/${pkgname%-gameshell-git}"
2424
if [[ ! -d ./build ]]; then
2525
mkdir build && cd build
2626
cmake .. -DGAMESHELL=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
2727
fi
2828
}
2929

3030
build() {
31-
cd "$srcdir/${pkgname%-git}/build"
31+
cd "$srcdir/${pkgname%-gameshell-git}/build"
3232
make -j$(nproc)
3333
}
3434

3535
package() {
36-
cd "$srcdir/${pkgname%-git}/build"
36+
cd "$srcdir/${pkgname%-gameshell-git}/build"
3737
make DESTDIR="${pkgdir}/" install
38+
# /usr/local/bin isn't in PATH by the default,
39+
# we should move it to /usr/bin
40+
cd ${pkgdir}
41+
mv usr/local/bin/ usr/bin/
42+
# cleanup when dir is empty
43+
rmdir usr/local || exit 0
3844
}

archlinux/PKGBUILD-odroid

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-odroid-git
44
pkgver=r2798.0edc0374
55
pkgrel=1
@@ -9,30 +9,36 @@ url="https://github.com/ptitSeb/box86"
99
license=('MIT')
1010
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1111
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
12+
provides=("${pkgname%-git}" "${_pkgname%-odroid-git}-git" "${_pkgname%-odroid-git}")
13+
conflicts=("${pkgname%-git}" "${_pkgname%-odroid-git}-git" "${_pkgname%-odroid-git}")
1414
source=('git+https://github.com/ptitSeb/box86')
1515
md5sums=('SKIP')
1616

1717
pkgver() {
18-
cd "$srcdir/${pkgname%-git}"
18+
cd "$srcdir/${pkgname%-odroid-git}"
1919
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2020
}
2121

2222
prepare() {
23-
cd "${srcdir}/${pkgname%-git}"
23+
cd "${srcdir}/${pkgname%-odroid-git}"
2424
if [[ ! -d ./build ]]; then
2525
mkdir build && cd build
2626
cmake .. -DODROID=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
2727
fi
2828
}
2929

3030
build() {
31-
cd "$srcdir/${pkgname%-git}/build"
31+
cd "$srcdir/${pkgname%-odroid-git}/build"
3232
make -j$(nproc)
3333
}
3434

3535
package() {
36-
cd "$srcdir/${pkgname%-git}/build"
36+
cd "$srcdir/${pkgname%-odroid-git}/build"
3737
make DESTDIR="${pkgdir}/" install
38+
# /usr/local/bin isn't in PATH by the default,
39+
# we should move it to /usr/bin
40+
cd ${pkgdir}
41+
mv usr/local/bin/ usr/bin/
42+
# cleanup when dir is empty
43+
rmdir usr/local || exit 0
3844
}

archlinux/PKGBUILD-pandora

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-pandora-git
4+
_pkgname=box86-git
45
pkgver=r2798.0edc0374
56
pkgrel=1
67
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
@@ -9,30 +10,36 @@ url="https://github.com/ptitSeb/box86"
910
license=('MIT')
1011
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1112
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
13+
provides=("${pkgname%-git}" "${pkgname%-pandora-git}"-git "${pkgname%-pandora-git}")
14+
conflicts=("${pkgname%-git}" "${pkgname%-pandora-git}"-git "${pkgname%-pandora-git}")
1415
source=('git+https://github.com/ptitSeb/box86')
1516
md5sums=('SKIP')
1617

1718
pkgver() {
18-
cd "$srcdir/${pkgname%-git}"
19+
cd "$srcdir/${pkgname%-pandora-git}"
1920
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2021
}
2122

2223
prepare() {
23-
cd "${srcdir}/${pkgname%-git}"
24+
cd "${srcdir}/${pkgname%-pandora-git}"
2425
if [[ ! -d ./build ]]; then
2526
mkdir build && cd build
2627
cmake .. -DPANDORA=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
2728
fi
2829
}
2930

3031
build() {
31-
cd "$srcdir/${pkgname%-git}/build"
32+
cd "$srcdir/${pkgname%-pandora-git}/build"
3233
make -j$(nproc)
3334
}
3435

3536
package() {
3637
cd "$srcdir/${pkgname%-git}/build"
3738
make DESTDIR="${pkgdir}/" install
39+
# /usr/local/bin isn't in PATH by the default,
40+
# we should move it to /usr/bin
41+
cd ${pkgdir}
42+
mv usr/local/bin/ usr/bin/
43+
# cleanup when dir is empty
44+
rmdir usr/local || exit 0
3845
}

archlinux/PKGBUILD-pyra

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-pyra-git
4+
_pkgname=box86-git
45
pkgver=r2798.0edc0374
56
pkgrel=1
67
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
@@ -9,30 +10,36 @@ url="https://github.com/ptitSeb/box86"
910
license=('MIT')
1011
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1112
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
13+
provides=("${pkgname%-git}" "${pkgname%-pyra-git}-git" "${pkgname%-pyra-git}")
14+
conflicts=("${pkgname%-git}" "${pkgname%-pyra-git}-git" "${pkgname%-pyra-git}")
1415
source=('git+https://github.com/ptitSeb/box86')
1516
md5sums=('SKIP')
1617

1718
pkgver() {
18-
cd "$srcdir/${pkgname%-git}"
19+
cd "$srcdir/${pkgname%-pyra-git}"
1920
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2021
}
2122

2223
prepare() {
23-
cd "${srcdir}/${pkgname%-git}"
24+
cd "${srcdir}/${pkgname%-pyra-git}"
2425
if [[ ! -d ./build ]]; then
2526
mkdir build && cd build
2627
cmake .. -DPYRA=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
2728
fi
2829
}
2930

3031
build() {
31-
cd "$srcdir/${pkgname%-git}/build"
32+
cd "$srcdir/${pkgname%-pyra-git}/build"
3233
make -j$(nproc)
3334
}
3435

3536
package() {
36-
cd "$srcdir/${pkgname%-git}/build"
37+
cd "$srcdir/${pkgname%-pyra-git}/build"
3738
make DESTDIR="${pkgdir}/" install
39+
# /usr/local/bin isn't in PATH by the default,
40+
# we should move it to /usr/bin
41+
cd ${pkgdir}
42+
mv usr/local/bin/ usr/bin/
43+
# cleanup when dir is empty
44+
rmdir usr/local || exit 0
3845
}

archlinux/PKGBUILD-raspberrypi

+21-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Maintainer: SpacingBat3 <youremail@domain.com>
2-
# Contributor: Sebastien Chevalier
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
33
pkgname=box86-rpi-git
4+
_pkgname=box86-git
45
pkgver=r2798.0edc0374
56
pkgrel=1
67
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
@@ -9,29 +10,30 @@ url="https://github.com/ptitSeb/box86"
910
license=('MIT')
1011
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
1112
makedepends=('git' 'cmake' 'make')
12-
provides=("${pkgname%-git}")
13-
conflicts=("${pkgname%-git}")
13+
provides=("${pkgname%-git}" "${pkgname%-rpi-git}-git" "${pkgname%--rpi-git}")
14+
conflicts=("${pkgname%-git}" "${pkgname%-rpi-git}-git" "${pkgname%--rpi-git}")
1415
source=('git+https://github.com/ptitSeb/box86')
1516
md5sums=('SKIP')
1617
_pimodel=`tr -d '\0' < /sys/firmware/devicetree/base/model`
1718

1819
pkgver() {
19-
cd "$srcdir/${pkgname%-git}"
20+
cd "$srcdir/${pkgname%-rpi-git}"
2021
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2122
}
2223

2324
prepare() {
24-
cd "${srcdir}/${pkgname%-git}"
25+
cd "${srcdir}/${pkgname%-rpi-git}"
2526
# Check for Pi version number
26-
if [[ ${_pimodel} ~= "Raspberry Pi 4" ]]; then
27+
if [[ ${_pimodel} =~ "Raspberry Pi 4" ]]; then
2728
_piversion=4
28-
elif [[ ${_pimodel} ~= "Raspberry Pi 3" ]]; then
29+
elif [[ ${_pimodel} =~ "Raspberry Pi 3" ]]; then
2930
_piversion=3
30-
elif [[ ${_pimodel} ~= "Raspberry Pi 2" ]]; then
31+
elif [[ ${_pimodel} =~ "Raspberry Pi 2" ]]; then
3132
_piversion=2
3233
else
33-
# Your RPI is not supported or this device is not a pi, cancel build then
34-
echo -e "\033[01m\033[01;31m==> ERROR:\033[00;01m Your device is not supported! This script is for RPi model 4/3/2 (1/0 not supported).\033[00m"
34+
# This RPI is not supported or this device is not a pi.
35+
# We should cancel then the build.
36+
echo -e "\033[01m\033[01;31m==> ERROR:\033[00;01m Your device is not supported! This script is for RPi model 4/3/2 (1/0 isn't supported yet).\033[00m"
3537
exit 1
3638
fi
3739
echo -e "\033[01m\033[01;34m==> INFO:\033[00;01m Your detected Pi verion number is: \033[01;31m${_piversion}\033[01m.\033[00m"
@@ -42,11 +44,17 @@ prepare() {
4244
}
4345

4446
build() {
45-
cd "$srcdir/${pkgname%-git}/build"
47+
cd "$srcdir/${pkgname%-rpi-git}/build"
4648
make -j$(nproc)
4749
}
4850

4951
package() {
50-
cd "$srcdir/${pkgname%-git}/build"
52+
cd "$srcdir/${pkgname%-rpi-git}/build"
5153
make DESTDIR="${pkgdir}/" install
54+
# /usr/local/bin isn't in PATH by the default,
55+
# we should move it to /usr/bin
56+
cd ${pkgdir}
57+
mv usr/local/bin/ usr/bin/
58+
# cleanup when dir is empty
59+
rmdir usr/local || exit 0
5260
}

archlinux/PKGBUILD-rk3399

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2+
# Contributor: Sebastien Chevalier <sebastien.chev@gmail.com>
3+
pkgname=box86-rk3399-git
4+
_pkgname=box86-git
5+
pkgver=r2798.0edc0374
6+
pkgrel=1
7+
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
8+
arch=('armv7h')
9+
url="https://github.com/ptitSeb/box86"
10+
license=('MIT')
11+
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
12+
makedepends=('git' 'cmake' 'make')
13+
provides=("${pkgname%-git}" "${pkgname%-rk3399-git}-git" "${pkgname%-rk3399-git}")
14+
conflicts=("${pkgname%-git}" "${pkgname%-rk3399-git}-git" "${pkgname%-rk3399-git}")
15+
source=('git+https://github.com/ptitSeb/box86')
16+
md5sums=('SKIP')
17+
18+
pkgver() {
19+
cd "$srcdir/${pkgname%-rk3399-git}"
20+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
21+
}
22+
23+
prepare() {
24+
cd "${srcdir}/${pkgname%-rk3399-git}"
25+
if [[ ! -d ./build ]]; then
26+
mkdir build && cd build
27+
cmake .. -DRK3399=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
28+
fi
29+
}
30+
31+
build() {
32+
cd "$srcdir/${pkgname%-rk3399-git}/build"
33+
make -j$(nproc)
34+
}
35+
36+
package() {
37+
cd "$srcdir/${pkgname%-rk3399-git}/build"
38+
make DESTDIR="${pkgdir}/" install
39+
}

0 commit comments

Comments
 (0)