blob: a0a7d3ff04c852e89ba2d163c095790e17b1e3d0 (
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
|
# Maintainer: Bart De Vries <bart at mogwai dot be>
pkgname=box86
pkgver=0.3.8
pkgrel=1
pkgdesc='Linux Userspace x86 Emulator with a twist'
arch=('armv7h')
url='https://github.com/ptitSeb/box86'
license=('MIT')
install='box86.install'
depends=('gcc-libs')
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
makedepends=('git' 'cmake' 'python')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ptitSeb/box86/archive/v${pkgver}.tar.gz"
"box86.install")
sha256sums=('454e5f7c57f7c7c4530d4f453bf6afd07b00bd93c92fe16a4305bacae0b6a93d'
'ecd38bdad06c256b2655bd4707d7b5248611073f751357424f2fc6327743e299')
build() {
cd ${pkgname}-${pkgver}
cmake -B build -S . \
-DARM_DYNAREC=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
package() {
cd ${pkgname}-${pkgver}/build
make DESTDIR=${pkgdir} install
install -Dm644 ../LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
# Install documentation
install -d "${pkgdir}/usr/share/doc/${pkgname}/"
cp -R ../docs/* "${pkgdir}/usr/share/doc/${pkgname}/"
find "${pkgdir}"/usr/share/doc/${pkgname} -type f -exec chmod 0644 {} \;
find "${pkgdir}"/usr/share/doc/${pkgname} -type d -exec chmod 0755 {} \;
}
|