mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-23 14:50:29 +00:00
4b212f91bf
* Latest Batch of PKGBUILDS * Fix * Fix
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# Maintainer: Jai-JAP <jai.jap.318@gmail.com>, SpacingBat3 <git@spacingbat3.anonaddy.com>
|
|
# Author: Sebastien Chevalier <ptitseb@box86.org>
|
|
pkgname=box86-x86-git
|
|
pkgver=r4581.d698861
|
|
pkgrel=1
|
|
pkgdesc="Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices."
|
|
arch=('i386')
|
|
url="https://github.com/ptitSeb/box86"
|
|
license=('MIT')
|
|
makedepends=('git' 'cmake' 'make')
|
|
provides=("${pkgname%-git}" "${pkgname%-x86-git}-git" "${pkgname%-x86-git}")
|
|
conflicts=("${pkgname%-git}" "${pkgname%-x86-git}-git" "${pkgname%-x86-git}")
|
|
source=('git+https://github.com/ptitSeb/box86')
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${pkgname%-x86-git}"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname%-x86-git}"
|
|
[[ ! -d ./build ]] && mkdir build
|
|
cmake -B build -DLD80BITS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname%-x86-git}/build"
|
|
make -j$(nproc)
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname%-x86-git}/build"
|
|
make DESTDIR="${pkgdir}/" install
|
|
} |