box64/pkgbuilds/PKGBUILD-tegra

37 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-04-06 05:11:40 +00:00
# Maintainer: Jai-JAP <jai.jap.318@gmail.com>
2021-07-22 12:01:00 +00:00
# Author: Sebastien Chevalier <ptitseb@box86.org>
2021-07-22 10:40:03 +00:00
pkgname=box64-tegra-git
pkgver=r2431.60c6858
2021-07-22 10:40:03 +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')
provides=("${pkgname%-git}" "${pkgname%-tegra-git}-git" "${pkgname%-tegra-git}")
conflicts=("${pkgname%-git}" "${pkgname%-tegra-git}-git" "${pkgname%-tegra-git}")
source=('git+https://github.com/ptitSeb/box64')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-tegra-git}"
2021-07-22 10:40:03 +00:00
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname%-tegra-git}"
[[ ! -d ./build ]] && mkdir build
cmake -B build -DTEGRAX1=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
2021-07-22 10:40:03 +00:00
}
build() {
cd "${srcdir}/${pkgname%-tegra-git}/build"
2021-07-22 10:40:03 +00:00
make -j$(nproc)
}
package() {
cd "${srcdir}/${pkgname%-tegra-git}/build"
2021-07-22 10:40:03 +00:00
make DESTDIR="${pkgdir}/" install
}