diff options
author | Gabriel Jensen | 2023-07-08 22:35:48 +0200 |
---|---|---|
committer | Gabriel Jensen | 2023-07-08 22:35:48 +0200 |
commit | 9c1e21baa67d71f54b11447d8d2ff7728733037f (patch) | |
tree | 7c3066f58fec4a6526803eff7371d03283706ae8 | |
parent | 9ff5dd15cc24cc76d729206b6c858d56857287c8 (diff) |
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,36 +1,35 @@ # Maintainer: Gabriel Jensen pkgname=bowshock -pkgver=0.12.0_dev.16.4f75a2c +pkgver=0.12.0_dev.20.5e406c3 pkgrel=1 pkgdesc="" arch=("any") url="https://mandelbrot.dk/bowshock" -depends=("ly" "zp") makedepends=("cmake" "desktop-file-utils" "git") source=("git+https://mandelbrot.dk/bowshock") license=("custom") sha512sums=("SKIP") pkgver() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/bowshock" printf "%s.%s.%s" "$(git describe --abbrev=0)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed "s/-/_/g" } prepare() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/bowshock" "./extractGlad.sh" "../../glad.zip" } build() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/bowshock" cmake -Bbuild -DBOW_DATA_DIRECTORY="/usr/share/bowshock" -DCMAKE_BUILD_TYPE=Release cmake --build build } package() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/bowshock" mkdir -pm755 "${pkgdir}/usr/bin" mkdir -pm755 "${pkgdir}/usr/share/applications" mkdir -pm755 "${pkgdir}/usr/share/bowshock" mkdir -pm755 "${pkgdir}/usr/share/icons" "./install.sh" "build" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/bowshock" - install -m644 "bowshock-small.svg" "${pkgdir}/usr/share/icons/${pkgname}.svg" + install -m644 "bowshock-small.svg" "${pkgdir}/usr/share/icons/bowshock.svg" desktop-file-install --dir="${pkgdir}/usr/share/applications" "bowshock.desktop" } |