summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD20
1 files changed, 13 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d757971..3493786 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,35 @@
# Maintainer: Gabriel Jensen
pkgname=bowshock
-pkgver=0.6.0
+pkgver=0.11.2
pkgrel=1
pkgdesc=""
arch=("any")
-url="https://mandelbrot.dk/${pkgname}"
+url="https://mandelbrot.dk/bowshock"
makedepends=("desktop-file-utils" "git")
-source=("git+https://mandelbrot.dk/${pkgname}")
+source=("git+https://mandelbrot.dk/bowshock")
license=("custom")
sha512sums=("SKIP")
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s" "$(git describe --abbrev=0)"
}
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ "./extractGlad.sh" "../../glad.zip"
+}
build() {
cd "${srcdir}/${pkgname}"
- make -C"${pkgname}" -j$(($(nproc) + 0x1))
+ cmake -Bbuild -DBOW_DATA_DIRECTORY="/usr/share/bowshock" -DCMAKE_BUILD_TYPE=Release
+ cmake --build build
}
package() {
cd "${srcdir}/${pkgname}"
mkdir -pm755 "${pkgdir}/usr/bin"
mkdir -pm755 "${pkgdir}/usr/share/applications"
+ mkdir -pm755 "${pkgdir}/usr/share/bowshock"
mkdir -pm755 "${pkgdir}/usr/share/icons"
- install -m755 "${pkgname}/${pkgname}.elf" "${pkgdir}/usr/bin/${pkgname}"
- install -m644 "${pkgname}-small.svg" "${pkgdir}/usr/share/icons/${pkgname}.svg"
- desktop-file-install --dir="${pkgdir}/usr/share/applications" "${pkgname}.desktop"
+ "./install.sh" "build" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/bowshock"
+ install -m644 "bowshock-small.svg" "${pkgdir}/usr/share/icons/${pkgname}.svg"
+ desktop-file-install --dir="${pkgdir}/usr/share/applications" "bowshock.desktop"
}