about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbbbruni <77002160+bbbruni@users.noreply.github.com>2021-10-21 22:42:28 +0300
committerGitHub <noreply@github.com>2021-10-21 22:42:28 +0300
commita72d2574436d6a87ccd810b301addb865ae5e99f (patch)
treec4fe12208ef8bf10588c2ec136a1ba23b14f3f6e
parent6a99a4b3596ff9b64825f672a23a7fe669db5cc5 (diff)
downloadbox64-a72d2574436d6a87ccd810b301addb865ae5e99f.tar.gz
box64-a72d2574436d6a87ccd810b301addb865ae5e99f.zip
Added PKGBUILD-rk3399-DEBUG
-rw-r--r--pkgbuilds/PKGBUILD-rk3399-DEBUG44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgbuilds/PKGBUILD-rk3399-DEBUG b/pkgbuilds/PKGBUILD-rk3399-DEBUG
new file mode 100644
index 00000000..2d36a378
--- /dev/null
+++ b/pkgbuilds/PKGBUILD-rk3399-DEBUG
@@ -0,0 +1,44 @@
+# Maintainer: Jai-JAP <parjailu@gmail.com>
+# Author: Sebastien Chevalier <ptitseb@box86.org>
+pkgname=box86-rk3399-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%-rk3399-git}-git" "${pkgname%-rk3399-git}")
+conflicts=("${pkgname%-git}" "${pkgname%-rk3399-git}-git" "${pkgname%-rk3399-git}")
+source=('git+https://github.com/ptitSeb/box64')
+md5sums=('SKIP')
+
+pkgver() {
+	cd "$srcdir/${pkgname%-rk3399-git}"
+	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+	cd "${srcdir}/${pkgname%-rk3399-git}"
+	if [[ ! -d ./build ]]; then
+		mkdir build && cd build
+                cmake .. -DRK3399=1 -DCMAKE_BUILD_TYPE=Debug
+	fi
+}
+
+build() {
+	cd "$srcdir/${pkgname%-rk3399-git}/build"
+	make -j$(nproc)
+}
+
+package() {
+	cd "$srcdir/${pkgname%-rk3399-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
+}