blob: 5620a1ac4236b382dc97f0cdc530c6b3e2c15366 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Salvador PardiƱas <darkfm at vera dot com dot uy>
# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Dr.T.Error <der_dot_t_dot_error_at_online_dot_de>
pkgname=ufoai-git
_gitname=code
pkgver=2.6.45213.9b2eab2222
pkgrel=1
epoch=1
pkgdesc="In UFO: Alien Invasion you fight aliens trying to capture Earth (dev version)"
url="http://ufoai.org/wiki/News"
license=('GPL')
arch=('aarch64' 'x86_64')
depends=('libjpeg' 'libgl' 'libpng' 'curl' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'libtheora' 'xvidcore' 'glu')
makedepends=('git' 'python2' 'zip' 'gtksourceview2' 'gtkglext' 'openal' 'python-urllib3' 'gtest')
optdepends=('python2: compiling self-created maps'
'gtksourceview2: compiling the map-editor'
'gtkglext: compiling the map-editor'
'openal: compiling the map-editor')
conflicts=('ufoai' 'ufoai-data')
source=(git+git://git.code.sf.net/p/ufoai/code)
#source=('git+file:///home/kouta-kun/ufo')
sha256sums=('SKIP')
pkgver() {
cd ${_gitname}
_ufover=$(grep UFO_VERSION src/common/common.h | sed -e 's/.*UFO_VERSION \"\(.*\)\"/\1/'|cut -d- -f1)
echo ${_ufover}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd ${_gitname}
# uncomment the '--enable-uforadiant' line for ufo-radiant (map editor)
./configure --prefix=/usr --datadir=/usr/share/ufoai \
--enable-release --localedir=/usr/share/ufoai/base/i18n/ \
--disable-uforadiant
}
build() {
cd ${_gitname}
make
make lang
make models
make maps-sync
make pk3
}
package() {
cd ${_gitname}
# binaries
install -Dm755 ufo "${pkgdir}/usr/bin/ufo"
install -Dm755 ufoded "${pkgdir}/usr/bin/ufoded"
install -Dm755 ufo2map "${pkgdir}/usr/bin/ufo2map"
install -Dm755 ufomodel "${pkgdir}/usr/bin/ufomodel"
# gamedata
install -d -m755 "${pkgdir}/usr/share/ufoai"
cp -r base "${pkgdir}/usr/share/ufoai"
# licenses
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
cp COPYING LICENSES "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 debian/ufoai.desktop "${pkgdir}/usr/share/applications/ufoai.desktop"
install -Dm644 debian/ufoai-safe.desktop "${pkgdir}/usr/share/applications/ufoai-safe.desktop"
install -Dm644 debian/ufoded.desktop "${pkgdir}/usr/share/applications/ufoded.desktop"
sed -i 's|/usr/games/||' "${pkgdir}"/usr/share/applications/*
install -Dm644 debian/ufoai.xpm "${pkgdir}/usr/share/pixmaps/ufoai.xpm"
install -Dm644 debian/ufoded.xpm "${pkgdir}/usr/share/pixmaps/ufoded.xpm"
}
# vim: ts=2 sw=2 et:
|