summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-07 03:02:55 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-07 03:02:55 +0000
commita4e3d6864d0e20bf4ea9ea8553a3ce8eb760c94e (patch)
tree552b42ce7a47030f9fcc8dea4b7b89101b8668bb /user
parent9647ec8115952f08c69df3fc1b513db7e0f37dda (diff)
downloadpackages-a4e3d6864d0e20bf4ea9ea8553a3ce8eb760c94e.tar.gz
packages-a4e3d6864d0e20bf4ea9ea8553a3ce8eb760c94e.tar.bz2
packages-a4e3d6864d0e20bf4ea9ea8553a3ce8eb760c94e.tar.xz
packages-a4e3d6864d0e20bf4ea9ea8553a3ce8eb760c94e.zip
user/trigger-rally: install icons
Diffstat (limited to 'user')
-rw-r--r--user/trigger-rally/APKBUILD17
-rw-r--r--user/trigger-rally/trigger-rally.desktop8
2 files changed, 24 insertions, 1 deletions
diff --git a/user/trigger-rally/APKBUILD b/user/trigger-rally/APKBUILD
index adf5c2b40..3b1c6c29d 100644
--- a/user/trigger-rally/APKBUILD
+++ b/user/trigger-rally/APKBUILD
@@ -11,8 +11,10 @@ license="GPL-2.0-only"
depends=""
makedepends="freealut-dev glew-dev glu-dev openal-soft-dev physfs-dev sdl2-dev
sdl2_image-dev"
+subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/trigger-rally/trigger-rally-$pkgver.tar.gz
dont-strip.patch
+ trigger-rally.desktop
"
build() {
@@ -21,9 +23,22 @@ build() {
}
package() {
+ local _icon=""
+
cd "$builddir"/src
make OPTIMS="$CXXFLAGS" DESTDIR="$pkgdir" prefix=/usr install
+
+ install -D -m644 "$srcdir"/trigger-rally.desktop \
+ "$pkgdir"/usr/share/applications/trigger-rally.desktop
+
+ for _icon in 16 22 24 32 36 48 64 72 96 128 192 256; do
+ install -D -m644 "$builddir"/data/icon/trigger-$_icon.png \
+ "$pkgdir"/usr/share/icons/hicolor/${_icon}x${_icon}/apps/trigger.png
+ done
+ install -D -m644 "$builddir"/data/icon/trigger-rally-icons.svg \
+ "$pkgdir"/usr/share/icons/hicolor/scalable/apps/trigger.svg
}
sha512sums="59f48c116b20e47559b4c07107fa4055a9ad516e9c147763e4ba5d2ead3a4a5101f7d690483a1ef0df847ca647c0f750937512ee579f4ae06908157d9eabf184 trigger-rally-0.6.5.tar.gz
-a81781058177e012daaad58d72e4bdbdbc2730b1df76941ba03f06367545b213ba82a33bab46deba31570973deb1802a3d459704c3a963c38eec69ef82f228d5 dont-strip.patch"
+a81781058177e012daaad58d72e4bdbdbc2730b1df76941ba03f06367545b213ba82a33bab46deba31570973deb1802a3d459704c3a963c38eec69ef82f228d5 dont-strip.patch
+807f0c99cc148e34cfe29af13f62375ee7f79f079f29cfda3b90045e0ad8676944d9e8031ab7037429a93d7547da53740e8ce002c4d3c46d93c3d8c9eb2e4ae9 trigger-rally.desktop"
diff --git a/user/trigger-rally/trigger-rally.desktop b/user/trigger-rally/trigger-rally.desktop
new file mode 100644
index 000000000..74b67da0f
--- /dev/null
+++ b/user/trigger-rally/trigger-rally.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+Version=1.1
+Name=Trigger
+Comment=Fast-paced rally racing game
+Icon=trigger
+Exec=/usr/games/trigger-rally
+Category=Game;Simlulation