summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c08923c5d394d5d5b25799f6c7607841eb95229 (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
52
# Maintainer: Jan Cholasta <jan at cholasta net>

pkgname=nblood-git
pkgver=1.01+858+g8ad376d
pkgrel=1
pkgdesc='Blood port based on EDuke32 (git version)'
arch=('i686' 'x86_64')
url='http://nukeykt.retrohost.net/'
license=('GPL' 'custom:BUILD')
depends=('flac'
         'glu'
         'gtk2'
         'libgl'
         'libogg'
         'libvorbis'
         'sdl2'
         'sdl2_mixer'
         'timidity++')
makedepends=('git' 'imagemagick')
makedepends_i686=('nasm')
provides=('nblood')
conflicts=('nblood')
source=('NBlood::git+https://github.com/nukeykt/NBlood.git'
        'nblood.desktop')
sha256sums=('SKIP'
            '58807697e95e071a6354f87e8e2fdae9f32af0e08dad1a510a0089845df42184')

pkgver() {
    cd NBlood
    git describe --tags --long | sed 's/^v//;s/-/+/g'
}

build() {
    cd NBlood
    make PACKAGE_REPOSITORY=1
    MAGICK_OCL_DEVICE=OFF convert \
        source/blood/rsrc/game.bmp \
        -gravity center \
        -crop 200x200+0+0 \
        -rotate 90 \
        -resize 192x192 \
        nblood.png
}

package() {
    cd NBlood
    install -D -t "$pkgdir"/usr/bin nblood
    install -D -t "$pkgdir"/usr/share/games/nblood -m 644 nblood.pk3
    install -D -t "$pkgdir"/usr/share/licenses/$pkgname -m 644 package/common/buildlic.txt
    install -D -t "$pkgdir"/usr/share/applications -m 644 "$srcdir"/nblood.desktop
    install -D -t "$pkgdir"/usr/share/icons/hicolor/192x192/apps -m 644 nblood.png
}