blob: 6d0e7ae6d43dda5860ec23a7c69281eaac08ca88 (
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
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgname=opentyrian-git
pkgver=2.1.20220318+r4+g74245db
pkgrel=1
epoch=1
pkgdesc="Open-source port of the DOS shoot-em-up Tyrian"
url="https://github.com/opentyrian/opentyrian"
arch=(i686 x86_64)
license=(GPL2)
depends=(sdl2 sdl2_net)
makedepends=(git)
provides=(opentyrian)
conflicts=(opentyrian)
replaces=(opentyrian-svn opentyrian-hg)
source=("git+https://github.com/opentyrian/opentyrian"
http://www.camanis.net/opentyrian/tyrian21.zip)
sha256sums=('SKIP'
'7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277')
pkgver() {
cd opentyrian
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd opentyrian
}
_make() {
make prefix=/usr \
OPENTYRIAN_VERSION="$pkgver-$pkgrel" VCS_IDREV=false \
"$@"
}
build() {
cd opentyrian
_make all
}
package() {
cd opentyrian
_make DESTDIR="$pkgdir" install
cd ../tyrian21
install -Dt "$pkgdir/usr/share/games/tyrian" -m644 *.dat *.lvl *.shp *.snd \
demo.* music.mus tyrend.anm tyrian.{cdt,hdt,pic} tshp2.pcx
}
# vim:set sw=2 et:
|