From 0e7ab99fb5fb2ce6e801b82881f3acafbd8317f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 17 Nov 2015 19:20:32 +0100 Subject: [PATCH] New package: astromenace-1.3.2 --- srcpkgs/astromenace-data | 1 + srcpkgs/astromenace/files/astromenace.desktop | 9 +++++ srcpkgs/astromenace/template | 38 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 120000 srcpkgs/astromenace-data create mode 100644 srcpkgs/astromenace/files/astromenace.desktop create mode 100644 srcpkgs/astromenace/template diff --git a/srcpkgs/astromenace-data b/srcpkgs/astromenace-data new file mode 120000 index 0000000000..6c0834e519 --- /dev/null +++ b/srcpkgs/astromenace-data @@ -0,0 +1 @@ +astromenace \ No newline at end of file diff --git a/srcpkgs/astromenace/files/astromenace.desktop b/srcpkgs/astromenace/files/astromenace.desktop new file mode 100644 index 0000000000..8640b7ee46 --- /dev/null +++ b/srcpkgs/astromenace/files/astromenace.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=AstroMenace +Comment=Hardcore 3D space shooter +TryExec=astromenace +Exec=astromenace --dir=/usr/share/astromenace +Icon=astromenace +Categories=Game;ArcadeGame; +Terminal=false diff --git a/srcpkgs/astromenace/template b/srcpkgs/astromenace/template new file mode 100644 index 0000000000..3b90a4bb1a --- /dev/null +++ b/srcpkgs/astromenace/template @@ -0,0 +1,38 @@ +# Template file for 'astromenace' +pkgname=astromenace +version=1.3.2 +revision=1 +wrksrc=AstroMenace +build_style=cmake +hostmakedepends="cmake pkg-config" +makedepends="SDL-devel libopenal-devel freealut-devel libvorbis-devel + fontconfig-devel freetype-devel libXinerama-devel" +depends="astromenace-data>=${version}_${revision}" +nocross=yes +short_desc="Hardcore 3D space shooter" +maintainer="Jürgen Buchmüller " +license="GPL-3 OFL-1.1 CC-BY-SA-3.0" +homepage="http://www.viewizard.com/" +distfiles="${SOURCEFORGE_SITE}/openastromenace/${version}/${pkgname}-src-${version}.tar.bz2" +checksum=9b775df2b157565b97aca008dd879b867cd3377c07b829cee6b5342639357fe6 + +do_install() { + vbin build/AstroMenace ${pkgname} + vdoc ReadMe.txt README + vlicense License.txt LICENSE + for size in 64 128; do + vinstall ${wrksrc}/${pkgname}_${size}.png 644 \ + usr/share/icons/hicolor/${size}x${size}/apps ${pkgname}.png + done + vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications + build/AstroMenace --pack --rawdata=RAW_VFS_DATA + vinstall build/gamedata.vfs 644 usr/share/${pkgname} +} + +astromenace-data_package() { + short_desc+=" - data file" + noarch="yes" + pkg_install() { + vmove usr/share/astromenace + } +}