blob: ca0dbae1998fcbd0041d5c23d092ffc911046f39 (
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
|
#Maintainer: Gabriel Margiani (gamag) <gabriel _strange_curved_character_ margiani · ch>
#Contributor: matthiaskrgr <matthias · krueger _strange_curved_character_ famsike · de>
pkgname=widelands-bzr
pkgver=r8507
pkgrel=1
pkgdesc="A realtime strategy game with emphasis on economy and transport - development version"
arch=(i686 x86_64)
license=('GPL2')
depends=('glew' 'sdl2_image' 'boost-libs' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('bzr' 'cmake' 'python' 'boost')
provides=('widelands')
conflicts=('widelands' 'widelands-data')
url="http://wl.widelands.org"
changelog=changelog
source=("changelog")
sha1sums=('SKIP')
# HACK: Use Prepare to make a lightweight checkout, since it is a little faster
# than a full branch, as pacman would do it. If you have a better solution,
# just tell me.
prepare() {
cd "$srcdir"
if test -d "$pkgname/.bzr"; then
cd "$pkgname"
msg2 "Updating bzr checkout"
bzr update
else
# don't use lp: to avoid bzr asking for ssh passphrase to authenticate
# on launchpad
msg2 "Making lightweight checkout. This may take some time."
bzr checkout --lightweight "http://bazaar.launchpad.net/~widelands-dev/widelands/trunk" "$pkgname"
fi
}
build() {
cd "$srcdir/$pkgname"
test -d build/locale || mkdir -p build/locale
test -e locale || ln -s build/locale
cd build
msg2 "Running cmake..."
# if this failes on an existing build because of an mismatch of src and build cmake files, just delete build and try again.
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DOPTION_BUILD_WEBSITE_TOOLS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr/bin \
-DWL_INSTALL_DATADIR=/usr/share/widelands \
-DOPTION_ASAN=OFF
msg2 "Running make..."
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="$pkgdir" install
}
pkgver() {
printf "r%s" "$(bzr revno "http://bazaar.launchpad.net/~widelands-dev/widelands/trunk" -q)"
}
|