summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2306d920c7ec72e8d9aafae3e18f901b2cccff4 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Stefan Schmidt <thrimbor gmail com>

pkgname=hurrican
pkgver=1.0.9.2
pkgrel=2
pkgdesc="Freeware jump and shoot game created by Poke53280"
arch=('i686' 'x86_64')
url="https://github.com/thrimbor/Hurrican.git"
license=('custom: MIT')
depends=('sdl_image' 'sdl_mixer' 'libmodplug' 'libgl' 'libepoxy')
makedepends=('git' 'mesa' 'cmake')
conflicts=('hurrican-svn')
source=(hurrican::"git+https://github.com/thrimbor/hurrican.git"
        glm::"git+https://github.com/g-truc/glm.git"
        hurrican.desktop
        hurrican.png)
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
    cd "${srcdir}"/hurrican
    git checkout "v${pkgver}"
    git submodule init
    git config submodule.Hurrican/3rdparty/glm.url "${srcdir}"/glm
    git submodule update
}

build() {
    mkdir -p "${srcdir}/hurrican/Hurrican/build"
    cd "${srcdir}/hurrican/Hurrican/build"
    cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr
    make
}

package() {
    pushd "${srcdir}/hurrican/Hurrican/build"
    make DESTDIR="$pkgdir" install
    rm -rf "$pkgdir"/usr/share/hurrican/data/textures/pvr
    popd

    # .deskop integration
    install -Dm0644 hurrican.desktop "$pkgdir"/usr/share/applications/hurrican.desktop
    install -Dm0644 hurrican.png "$pkgdir"/usr/share/pixmaps/hurrican.png

    cd "${srcdir}/hurrican"
    install -Dm0644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.txt
    mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/
    ln -s /usr/share/doc/hurrican/README.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}