aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mgba
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2018-08-05 04:25:21 +0200
committerShiz <hi@shiz.me>2018-08-05 04:25:21 +0200
commite34a6a566fb12efd6710cb74f81b1adf1788d048 (patch)
tree15890f7daac1d234627dfbc8ac20323ad8864558 /testing/mgba
parent5c1b1265e13e337db8a10c3a81045688302d4614 (diff)
downloadaports-e34a6a566fb12efd6710cb74f81b1adf1788d048.tar.bz2
aports-e34a6a566fb12efd6710cb74f81b1adf1788d048.tar.xz
testing/mgba: move qt .desktop file to -qt subpackage
Diffstat (limited to 'testing/mgba')
-rw-r--r--testing/mgba/APKBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/testing/mgba/APKBUILD b/testing/mgba/APKBUILD
index ca9298e389..b2e677e974 100644
--- a/testing/mgba/APKBUILD
+++ b/testing/mgba/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Alexander Edland <alpine@ocv.me>
pkgname=mgba
pkgver=0.6.3
-pkgrel=0
+pkgrel=1
pkgdesc="Game Boy Advance Emulator"
url="https://github.com/mgba-emu/mgba"
arch="all"
@@ -61,11 +61,6 @@ package() {
# delete config cruft
rm "$pkgdir/usr/include/mgba/flags.h"
rmdir -p "$pkgdir/usr/include/mgba" || :
-
- # add desktop file
- local apps="$pkgdir/usr/share/applications"
- mkdir -p "$apps"
- cp "$startdir/mgba-qt.desktop" "$apps"/
}
_py() {
@@ -78,16 +73,18 @@ _py() {
local dest="$subpkgdir/usr/lib/python$pyver/site-packages"
mkdir -p "$dest"
- mv $bdir/mgba/ "$dest/"
+ mv $bdir/mgba/ "$dest"
}
_qt() {
pkgdesc="Qt5 frontend for the mGBA emulator"
- local dest="$subpkgdir/usr/bin"
-
- mkdir -p "$dest"
- mv "$pkgdir/usr/bin/mgba-qt" "$dest"
+ local bin="$subpkgdir/usr/bin"
+ local apps="$subpkgdir/usr/share/applications"
+
+ mkdir -p "$bin" "$apps"
+ mv "$pkgdir/usr/bin/mgba-qt" "$bin"
+ cp "$startdir/mgba-qt.desktop" "$apps"
}
sha512sums="d646af7869dbcf8df671a75ecfd8c270950c013b826b23b94bacae43a77243786f198725e1b9bf17827d1ffcf6a8eef70091d53ea878bfb2450472485f42f233 mgba-0.6.3.tar.gz