blob: 8ccf781112b811334a3d7c3e8de02a3ff9d49bf1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Gabriel Jensen
pkgname=bowshock
pkgver=0.12.0_dev.20.5e406c3
pkgrel=1
pkgdesc=""
arch=("any")
url="https://mandelbrot.dk/bowshock"
makedepends=("cmake" "desktop-file-utils" "git")
source=("git+https://mandelbrot.dk/bowshock")
license=("custom")
sha512sums=("SKIP")
pkgver() {
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}/bowshock"
"./extractGlad.sh" "../../glad.zip"
}
build() {
cd "${srcdir}/bowshock"
cmake -Bbuild -DBOW_DATA_DIRECTORY="/usr/share/bowshock" -DCMAKE_BUILD_TYPE=Release
cmake --build build
}
package() {
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/bowshock.svg"
desktop-file-install --dir="${pkgdir}/usr/share/applications" "bowshock.desktop"
}
|