summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Anderson2018-07-04 09:46:46 -0400
committerSean Anderson2018-07-04 09:49:36 -0400
commit612e78d5ad20063bd48c2df049abd7d6037e1ca1 (patch)
treef5530487d879899255b099b3f6a54aeb21f10f01
parentbcb10e63b613caa6cfcbdb248c93f05c994eae2b (diff)
downloadaur-612e78d5ad20063bd48c2df049abd7d6037e1ca1.tar.gz
Add .desktop file with gendesk
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2de442b247a..a5bcc2c4c8c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,6 +6,7 @@ pkgbase = xcrawl-tiles
arch = i686
arch = x86_64
license = GPL
+ makedepends = gendesk
depends = sdl2_image
depends = sdl2_mixer
depends = freetype2
diff --git a/PKGBUILD b/PKGBUILD
index e95e8636c85..69d7b987229 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ depends=(
'sqlite'
'glu'
)
-makedepends=()
+makedepends=('gendesk')
checkdepends=()
optdepends=()
provides=()
@@ -32,6 +32,8 @@ source=("https://github.com/Vajrapani/X-Crawl/archive/$pkgver.tar.gz")
md5sums=('2e596dac25382f3af60241d5435f27b5')
prepare() {
+ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name "X-Crawl tiles" --categories "Application;Game" --exec "xcrawl"
+
cd "$_srcname-$pkgver/crawl-ref/source"
sed -i 's/GAME = crawl/GAME = xcrawl/' Makefile
@@ -67,6 +69,8 @@ build() {
#}
package() {
+ install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+
cd "$_srcname-$pkgver/crawl-ref/source"
make install \
@@ -78,4 +82,6 @@ package() {
LUA_PACKAGE=lua51 \
TILES=y \
SOUND=y
+
+ install -Dm644 "dat/tiles/stone_soup_icon-32x32.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}