summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpryre2017-08-28 20:52:40 +1000
committerpryre2017-08-28 20:52:40 +1000
commitb227ea5beae1eb1662b3694ecf981513dfd4e984 (patch)
tree394085eac0437ed43171ea86477868a98b8a2647
parent82e57c1b11cb6bb870432be5ad4aac320dd202c3 (diff)
downloadaur-b227ea5beae1eb1662b3694ecf981513dfd4e984.tar.gz
Added in desktop file (can't use in-built one)
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD21
2 files changed, 19 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15c1907ea81..e40a756fd7e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = qgroundcontrol
- pkgdesc = Micro air vehicle ground control station.
+ pkgdesc = Ground control for unmanned vehicles.
pkgver = 3.2.4
- pkgrel = 1
+ pkgrel = 2
url = http://qgroundcontrol.org/
arch = any
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 3daadc9f08a..0d5c6db768a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
-# Maintainer: Anselmo L. S. Melo <anselmo.melo@intel.com>
+# Maintainer: Kye Morton <pryre.dev@outlook.com>
pkgname=qgroundcontrol
pkgver=3.2.4
-pkgrel=1
-pkgdesc="Micro air vehicle ground control station."
+pkgrel=2
+pkgdesc="Ground control for unmanned vehicles."
arch=('any')
url="http://qgroundcontrol.org/"
license=('GPL3')
@@ -14,10 +14,23 @@ depends=(\
source=('https://github.com/mavlink/qgroundcontrol/releases/download/v'${pkgver}'/qgroundcontrol.tar.bz2')
md5sums=('58867938235dd74153d38f9e2f0aeb8f')
+build() {
+ echo "[Desktop Entry]
+Type=Application
+Name=QGroundControl
+Comment=Ground control for unmanned vehicles
+Path=/opt/qgroundcontrol/
+Exec=/usr/bin/qgroundcontrol
+Icon=/opt/qgroundcontrol/qgroundcontrol.png
+Terminal=false
+Categories=Qt;Utility;" > "$srcdir/${pkgname}/qgroundcontrol.desktop"
+}
+
package() {
- mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications"
cp -R "$srcdir/${pkgname}" "${pkgdir}/opt/qgroundcontrol"
ln -s "/opt/qgroundcontrol/qgroundcontrol-start.sh" "${pkgdir}/usr/bin/qgroundcontrol"
+ ln -s "/opt/qgroundcontrol/qgroundcontrol.desktop" "${pkgdir}/usr/share/applications/qgroundcontrol.desktop"
}
# vim:set ts=2 sw=2 et: