blob: 0ed125150e400ec909a040cd884803c16bf4c505 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Lili1228 <aur at gramywpsl dot pl>
pkgname=86box-git
pkgver=3.11.r298.g60b11eece
pkgrel=1
pkgdesc='An emulator for classic IBM PC clones'
arch=('pentium4' 'x86_64' 'arm7h' 'aarch64')
url='https://86box.net/'
license=('GPL2')
depends=('hicolor-icon-theme' 'libslirp' 'openal' 'qt6-base' 'rtmidi' 'sdl2')
makedepends=('git' 'cmake>=3.21' 'extra-cmake-modules' 'ninja' 'qt6-tools') # vulkan-headers on qt5
optdepends=(
'86box-roms-git: ROM files'
'discord-game-sdk: Discord Rich Presence'
'libpcap: Networking not limited to TCP/IP'
)
provides=('86box')
conflicts=('86box')
options=('!buildflags')
source=("${pkgname}::git+https://github.com/86Box/86Box.git")
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
case "$CARCH" in
pentium4) _NDR=off; _TOOLCHAIN=cmake/flags-gcc-i686.cmake ;;
x86_64) _NDR=off; _TOOLCHAIN=cmake/flags-gcc-x86_64.cmake ;;
arm7h) _NDR=on; _TOOLCHAIN=cmake/flags-gcc-armv7.cmake ;;
aarch64) _NDR=on; _TOOLCHAIN=cmake/flags-gcc-aarch64.cmake ;;
esac
LDFLAGS='-z now' cmake -S"${pkgname}" -Bbuild --preset regular --toolchain "$_TOOLCHAIN" -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT6=on -DNEW_DYNAREC="$_NDR" -DSLIRP_EXTERNAL=on
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --build "${srcdir}/build" --target install
for i in 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do
install -Dm644 "$srcdir/$pkgname/src/unix/assets/$i/net.86box.86Box.png" -t "$pkgdir/usr/share/icons/hicolor/$i/apps"
done
mkdir "$pkgdir/usr/share/applications"
sed 's/^Exec.*/Exec=86Box -P .local\/share\/86Box/' "$srcdir/$pkgname/src/unix/assets/net.86box.86Box.desktop" > "$pkgdir/usr/share/applications/net.86box.86Box.desktop"
}
|