blob: e5c63596310efbe336cc03e9a3c0f6d2e2c44b9e (
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
53
54
55
56
57
58
59
|
# Contributor: Lari Tikkanen <lartza@wippies.com>
# Maintainer: josephgbr <rafael.f.f1@gmail.com>
pkgname=teeworlds-git
pkgver=0.7.start.574.ge592d1b
pkgrel=1
pkgdesc='Multiplayer 2D shooter'
arch=('i686' 'x86_64')
url="http://teeworlds.com"
license=('custom')
depends=('alsa-lib' 'glu' 'mesa' 'gcc-libs' 'sdl2' 'freetype2')
makedepends=('python' 'git' 'bam' 'imagemagick' 'gendesk')
provides=('teeworlds')
conflicts=('teeworlds')
source=(git+https://github.com/teeworlds/teeworlds.git
git+https://github.com/teeworlds/teeworlds-translation.git
git+https://github.com/teeworlds/teeworlds-maps.git)
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd teeworlds
git describe | sed 's/^v//;s/-/./g;s/_/./g;'
}
prepare() {
convert "teeworlds/other/icons/Teeworlds.ico" "$srcdir/teeworlds.png"
gendesk -f -n --pkgname "teeworlds" --pkgdesc "$pkgdesc" \
--name 'Teeworlds' --categories 'Game;ArcadeGame'
cd teeworlds
git submodule init
git config submodule.data/languages.url "$srcdir/teeworlds-translation"
git config submodule.data/maps.url "$srcdir/teeworlds-maps"
git submodule update
}
build() {
cd teeworlds
bam client server
}
package() {
cd teeworlds
install -dm755 "$pkgdir"/usr/bin \
"$pkgdir"/usr/share/{applications,pixmaps} \
"$pkgdir"/usr/share/{licenses/teeworlds,teeworlds/data}
# Install data files
cp -r datasrc/* "$pkgdir"/usr/share/teeworlds/data
install -m755 build/$CARCH/debug/teeworlds "$pkgdir"/usr/bin/teeworlds
install -m755 build/$CARCH/debug/teeworlds_srv "$pkgdir"/usr/bin/teeworlds_srv
install -m644 license.txt "$pkgdir"/usr/share/licenses/teeworlds/
install -m644 ../teeworlds.desktop "$pkgdir"/usr/share/applications/
install -m644 ../teeworlds-0.png "$pkgdir"/usr/share/pixmaps/teeworlds.png
}
|