From e4c043dfcdd5a021f0c58d9c00d7d75b53865ea7 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 22 Apr 2014 22:16:51 +0200 Subject: [PATCH] xmoto: install .desktop files too. --- srcpkgs/xmoto/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xmoto/template b/srcpkgs/xmoto/template index 5f000571ea9..e3465c1d91d 100644 --- a/srcpkgs/xmoto/template +++ b/srcpkgs/xmoto/template @@ -1,7 +1,7 @@ # Template build file for 'xmoto' pkgname=xmoto version=0.5.11 -revision=1 +revision=2 build_style=gnu-configure short_desc="2D motocross platform game" maintainer="Enno Boland " @@ -10,9 +10,14 @@ makedepends="sqlite-devel zlib-devel libjpeg-turbo-devel libpng-devel libxml2-devel libxdg-basedir-devel glu-devel SDL-devel SDL_mixer-devel SDL_net-devel SDL_ttf-devel lua-devel libcurl-devel libode-devel bzip2-devel" -hostmakedepends="libxml2-devel SDL-devel" +hostmakedepends="libxml2-devel SDL-devel desktop-file-utils" homepage="http://xmoto.tuxfamily.org/" distfiles="http://download.tuxfamily.org/xmoto/xmoto/$version/$pkgname-$version-src.tar.gz" checksum=a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2 configure_args="--disable-sdltest CPPFLAGS=-DdDOUBLE" -#disable_parallel_build=yes + +post_install() { + desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \ + --dir="${DESTDIR}/usr/share/applications" extra/xmoto.desktop + vinstall "extra/xmoto.xpm" 644 "${pkgdir}/usr/share/pixmaps" +}