mirror of
https://github.com/ptitSeb/box86.git
synced 2024-12-11 16:44:47 +00:00
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
# Maintainer: Jai-JAP <parjailu@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
|
|
# Author: Sebastien Chevalier <ptitseb@box86.org>
|
|
pkgname=box86-pandora-git
|
|
pkgver=3494.bedacef
|
|
pkgrel=1
|
|
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
|
|
arch=('armv7h')
|
|
url="https://github.com/ptitSeb/box86"
|
|
license=('MIT')
|
|
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
|
|
makedepends=('git' 'cmake' 'make')
|
|
provides=("${pkgname%-git}" "${pkgname%-pandora-git}"-git "${pkgname%-pandora-git}")
|
|
conflicts=("${pkgname%-git}" "${pkgname%-pandora-git}"-git "${pkgname%-pandora-git}")
|
|
source=('git+https://github.com/ptitSeb/box86')
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/${pkgname%-pandora-git}"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname%-pandora-git}"
|
|
if [[ ! -d ./build ]]; then
|
|
mkdir build && cd build
|
|
cmake .. -DPANDORA=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${pkgname%-pandora-git}/build"
|
|
make -j$(nproc)
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${pkgname%-git}/build"
|
|
make DESTDIR="${pkgdir}/" install
|
|
# /usr/local/bin isn't in PATH by the default,
|
|
# we should move it to /usr/bin
|
|
cd ${pkgdir}
|
|
mv usr/local/bin/ usr/bin/
|
|
# cleanup when dir is empty
|
|
rmdir usr/local || exit 0
|
|
}
|