blob: 6eaa7746173f15945808f92f6d23c49182b39327 (
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
76
77
78
|
# Contributor: Johannes Dewender arch at JonnyJD dot net
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=holyspirit-svn
pkgver=2420
pkgrel=5
pkgdesc="Action role-playing game (ARPG, like diablo)"
arch=(i686 x86_64)
#url="http://www.holyspirit.fr/"
url="http://sourceforge.net/projects/lechemindeladam/"
license=('GPL')
depends=('sfml')
makedepends=('subversion' 'cmake' 'qtwebkit')
optdepends=('qtwebkit: for the launcher')
provides=('holyspirit')
conflicts=('holyspirit')
install=holyspirit.install
source=('holyspirit::svn+https://svn.code.sf.net/p/lechemindeladam/code/trunk'
holyspirit.sh config_crash.patch convertCoords.patch qt-includes.patch)
backup=('opt/share/games/holyspirit/configuration.conf' 'opt/share/games/holyspirit/key_mapping.conf')
md5sums=('SKIP'
'c2fa4f8768d35c54a95dec924e50c75f'
'c0fd6d1ede2cb6afbcf082aaae0cc60b'
'826ad464d28d8359a98105646abc6ebc'
'97fde790c28fd547be56a8c0d9e2029a')
pkgver(){
cd "$SRCDEST/holyspirit"
svnversion
}
build() {
cd "$srcdir/holyspirit"
# patches
patch -p1 < ../config_crash.patch
patch -p2 < ../convertCoords.patch
patch -p2 < ../qt-includes.patch
cmake -DSFML_STATIC_LIBRARIES=FALSE \
-DCMAKE_INSTALL_PREFIX:STRING="$pkgdir/opt"
msg "Building holyspirit..."
make
msg "Building the launcher..."
cd Launcher
#sed -i -e 's|/usr/share/qt4|/usr/share/qt|g' Makefile
#sed -i -e 's|/usr/bin/moc-qt4|/usr/bin/moc|g' Makefile
#make INCPATH="-I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit -I/usr/include/Qt -I. -I."
make
}
package() {
cd "$srcdir/holyspirit"
# fix currently broken upstream installation
sed -i -e "s|$pkgdir/opt/share/games/holyspirit/||g" holyspirit.ini
cp ../LauncherHolyspirit .
make install
# fix currently broken upstream installation
mv "$pkgdir/opt/games/"* "$pkgdir/opt/share/games/holyspirit/"
rm -r "$pkgdir/opt/games"
# desktop icon can be installed in /usr
mkdir -p "$pkgdir/usr/share"
mv "$pkgdir/opt/share/applications" "$pkgdir/usr/share/applications"
mv "$pkgdir/opt/share/icons" "$pkgdir/usr/share/icons"
sed -i -e "s|$pkgdir/opt|/opt/share|g" \
"$pkgdir/usr/share/applications/Holyspirit.desktop"
# make savegames, config and temp dirs writable
chgrp -R games "$pkgdir/opt/share/games/holyspirit/"{Data/User,{configuration,key_mapping}.conf}
chmod -R g+w "$pkgdir/opt/share/games/holyspirit/"{Data/User,{configuration,key_mapping}.conf}
install -D "$srcdir/holyspirit.sh" "$pkgdir/usr/bin/holyspirit"
}
# vim:set ts=2 sw=2 et:
|