summaryrefslogtreecommitdiff
path: root/hedgewars/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2010-04-04 16:33:54 +1000
committerDanny Rawlins <monster.romster@gmail.com>2010-04-04 16:35:57 +1000
commit3ea484e3264b26fdbfa37e49327ae3197d731d66 (patch)
tree27a1c92a021db5bd138e7212d4477b0fef336593 /hedgewars/Pkgfile
parent596bf67ae976580281d7d2be9822aa2ccdbadd14 (diff)
downloadcontrib-3ea484e3264b26fdbfa37e49327ae3197d731d66.tar.gz
contrib-3ea484e3264b26fdbfa37e49327ae3197d731d66.tar.xz
hedgewars: new port
Diffstat (limited to 'hedgewars/Pkgfile')
-rw-r--r--hedgewars/Pkgfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/hedgewars/Pkgfile b/hedgewars/Pkgfile
new file mode 100644
index 000000000..68b94b79d
--- /dev/null
+++ b/hedgewars/Pkgfile
@@ -0,0 +1,26 @@
+# Description: A turn based strategy game.
+# URL: http://www.hedgewars.org/
+# Packager: Danny Rawlins, monster dot romster at gmail dot com
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Depends on: fpc cmake qt4 sdl_net sdl_mixer sdl_image sdl_ttf libsdl
+
+name=hedgewars
+version=0.9.12
+release=1
+source=(http://download.gna.org/$name/hedgewars-src-$version.tar.bz2)
+
+build() {
+ cd hedgewars-src-$version
+
+ sed -i -e 's|"-O2" "-Xs" "-Nu"|"-O3" "-Xs" "-XD" "-Fu/usr/lib/fpc/2.4.0/units/i386-linux/opengl"|' hedgewars/CMakeLists.txt
+
+ mkdir build
+ cd build
+
+ cmake \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX="/usr" ..
+
+ make
+ make DESTDIR=$PKG install
+}

Generated by cgit