2022-04-06 05:07:18 +00:00
|
|
|
# Maintainer: Jai-JAP <jai.jap.318@gmail.com>
|
2021-10-21 19:37:11 +00:00
|
|
|
# Author: Sebastien Chevalier <ptitseb@box86.org>
|
2023-03-25 19:50:31 +00:00
|
|
|
pkgname=box64-odroid-git
|
|
|
|
pkgver=r2431.60c6858
|
2021-10-21 19:37:11 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices."
|
|
|
|
arch=('aarch64')
|
|
|
|
url="https://github.com/ptitSeb/box64"
|
|
|
|
license=('MIT')
|
|
|
|
optdepends=('gl4es: OpenGL 2 for GLES 2 devices')
|
|
|
|
makedepends=('git' 'cmake' 'make')
|
2023-03-25 19:50:31 +00:00
|
|
|
provides=("${pkgname%-git}" "${pkgname%-odroid-git}-git" "${pkgname%-odroid-git}")
|
|
|
|
conflicts=("${pkgname%-git}" "${pkgname%-odroid-git}-git" "${pkgname%-odroid-git}")
|
2021-10-21 19:37:11 +00:00
|
|
|
source=('git+https://github.com/ptitSeb/box64')
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
2023-03-25 19:50:31 +00:00
|
|
|
cd "${srcdir}/${pkgname%-odroid-git}"
|
2021-10-21 19:37:11 +00:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2023-03-25 19:50:31 +00:00
|
|
|
cd "${srcdir}/${pkgname%-odroid-git}"
|
|
|
|
[[ ! -d ./build ]] && mkdir build
|
|
|
|
cmake -B build -DODROIDN2=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
|
2021-10-21 19:37:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-03-25 19:50:31 +00:00
|
|
|
cd "${srcdir}/${pkgname%-odroid-git}/build"
|
2021-10-21 19:37:11 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-03-25 19:50:31 +00:00
|
|
|
cd "${srcdir}/${pkgname%-odroid-git}/build"
|
2021-10-21 19:37:11 +00:00
|
|
|
make DESTDIR="${pkgdir}/" install
|
|
|
|
}
|