summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf560d39fe22e7f3ab28774f723bf62d0d0a2691 (plain)
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
pkgname=jazz2-git
pkgver=1.0.0+r18.ff65dae
pkgrel=1
pkgdesc="Jazz² Resurrection - Open-source Jazz Jackrabbit 2 reimplementation"
arch=(x86_64 aarch64)
url=http://deat.tk/jazz2/
license=(GPL3 custom:MIT/Expat)
depends=(libopenmpt openal)
makedepends=(mesa cmake glfw)
conflicts=(jazz2-bin)
install=jazz2.install
source=(
    git+https://github.com/deathkiller/jazz2-native.git
    jazz2.{png,desktop})
md5sums=(
    SKIP
    4f9c50d3c78231f459481eab9d654919
    f603149c956a00b03f28fc7215a460b6)
pkgver(){
    cd jazz2-native
    git describe --tags|sed 's/-\(.*\)-g/+r\1./'
}
build(){
    cd jazz2-native
    sh BuildLinuxGcc.sh
}
package(){
    install Jazz2-LinuxGcc-Release/jazz2 -Dt $pkgdir/usr/bin
    mkdir -p "$pkgdir/usr/share/Jazz² Resurrection"
    cp -r jazz2-native/Content "$pkgdir/usr/share/Jazz² Resurrection"
    install jazz2.png -Dt $pkgdir/usr/share/pixmaps
    install jazz2.desktop -Dt $pkgdir/usr/share/applications
}