From d94add6c1e93d01bbd161504daf24bbc71747762 Mon Sep 17 00:00:00 2001 From: Jakub Skrzypnik Date: Wed, 16 Sep 2015 05:38:13 +0200 Subject: [PATCH] new package: hedgewars --- srcpkgs/hedgewars-data | 1 + srcpkgs/hedgewars/template | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 120000 srcpkgs/hedgewars-data create mode 100644 srcpkgs/hedgewars/template diff --git a/srcpkgs/hedgewars-data b/srcpkgs/hedgewars-data new file mode 120000 index 00000000000..e98c0a58da8 --- /dev/null +++ b/srcpkgs/hedgewars-data @@ -0,0 +1 @@ +hedgewars/ \ No newline at end of file diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template new file mode 100644 index 00000000000..15ee4130bf1 --- /dev/null +++ b/srcpkgs/hedgewars/template @@ -0,0 +1,33 @@ +# Template file for 'hedgewars' +pkgname=hedgewars +version=0.9.21.1 +revision=1 +wrksrc="${pkgname}-src-${version%.*}" +build_style=cmake +configure_args=" + -DNOSERVER=1 + -DDATA_INSTALL_DIR=/usr/share/${pkgname} + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DPHYSFS_SYSTEM=on +" +hostmakedepends="cmake lua lua51 pkg-config fpc qt-qmake" +makedepends="qt-devel SDL-devel SDL_net-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel lua51-devel physfs-devel libpng-devel ffmpeg-devel libfreeglut-devel" +depends="dejavu-fonts-ttf wqy-microhei hedgewars-data" +short_desc="Funny turn-based artillery game, featuring fighting Hedgehogs!" +maintainer="Jakub Skrzypnik " +license="GPL-2" +homepage="http://hedgewars.org" +distfiles="http://download.gna.org/hedgewars/hedgewars-src-${version}.tar.bz2" +checksum=590a9458d2123c5550d5eb39edfed28d0663703d76e13c8987237c92ca41f3f8 + +post_install() { + vinstall ${DESTDIR}/usr/share/hedgewars/Data/misc/hedgewars.desktop 644 usr/share/applications +} + +hedgewars-data_package() { + short_desc+=" - data files" + noarch=yes + pkg_install() { + vmove usr/share/hedgewars/Data + } +}