about summary refs log tree commit diff stats
path: root/pkgbuilds
diff options
context:
space:
mode:
authorbbbruni <77002160+bbbruni@users.noreply.github.com>2021-10-21 22:45:44 +0300
committerGitHub <noreply@github.com>2021-10-21 22:45:44 +0300
commit400ea800d95d13ed57f962a3c60daab287da90b6 (patch)
treed883839d0305c24d97fee62fc97aea22f3c6853f /pkgbuilds
parent0e1215268ae143603a6c2d0412a0273ba3a08eb4 (diff)
downloadbox64-400ea800d95d13ed57f962a3c60daab287da90b6.tar.gz
box64-400ea800d95d13ed57f962a3c60daab287da90b6.zip
Added PKGBUILD-tegra-DEBUG
Diffstat (limited to 'pkgbuilds')
-rw-r--r--pkgbuilds/PKGBUILD-tegra-DEBUG44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgbuilds/PKGBUILD-tegra-DEBUG b/pkgbuilds/PKGBUILD-tegra-DEBUG
new file mode 100644
index 00000000..688490f9
--- /dev/null
+++ b/pkgbuilds/PKGBUILD-tegra-DEBUG
@@ -0,0 +1,44 @@
+# Maintainer: Jai-JAP <parjailu@gmail.com>
+# Author: Sebastien Chevalier <ptitseb@box86.org>
+pkgname=box64-tegra-git
+pkgver=1116.9243ea4
+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}"
+	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+	cd "${srcdir}/${pkgname%-tegra-git}"
+	if [[ ! -d ./build ]]; then
+		mkdir build && cd build
+		cmake .. -DTEGRAX1=1 -DCMAKE_BUILD_TYPE=Debug
+	fi
+}
+
+build() {
+	cd "$srcdir/${pkgname%-tegra-git}/build"
+	make -j$(nproc)
+}
+
+package() {
+	cd "$srcdir/${pkgname%-tegra-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
+}