summaryrefslogtreecommitdiff
path: root/community/widelands-data/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/widelands-data/PKGBUILD')
-rw-r--r--community/widelands-data/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/widelands-data/PKGBUILD b/community/widelands-data/PKGBUILD
new file mode 100644
index 000000000..e83fd4754
--- /dev/null
+++ b/community/widelands-data/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 57510 2011-10-29 20:40:01Z lcarlier $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: Christoph Zeiler <rabyte*gmail>
+
+pkgname=widelands-data
+pkgver=16
+_realver=build16
+pkgrel=1
+pkgdesc="Widelands data files"
+arch=('any')
+url="http://widelands.org/"
+license=('GPL')
+makedepends=('cmake' 'boost' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'sdl_gfx' 'ggz-client-libs' 'lua' 'glew' 'python2')
+source=(http://launchpad.net/widelands/build16/$_realver/+download/widelands-$_realver-src.tar.bz2)
+md5sums=('3d8c28e145b73c64d8ed1625319d25a2')
+
+build() {
+ cd $srcdir/widelands-$_realver-src
+
+ mkdir -p build/compile && cd build/compile
+
+ cmake ../.. -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWL_INSTALL_PREFIX=/usr \
+ -DWL_INSTALL_DATADIR=share/widelands \
+ -DWL_INSTALL_BINDIR=bin
+ make
+}
+
+package() {
+ cd $srcdir/widelands-$_realver-src/build/compile
+
+ make DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir"/usr/{bin,share/widelands/{ChangeLog,COPYING,CREDITS,VERSION}}
+}