diff options
author | Kye Morton | 2019-04-17 20:57:50 +1000 |
---|---|---|
committer | Kye Morton | 2019-04-17 20:57:50 +1000 |
commit | fe2fc0601a34b822d27f026118f00a71efe294f9 (patch) | |
tree | c417932f665a9a0a9dbea431c1da369a0cb05718 | |
download | aur-fe2fc0601a34b822d27f026118f00a71efe294f9.tar.gz |
Shifted bin file across from qgroundcontrol package, relinked to not conflict with other versions
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..189dd9a25594 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = qgroundcontrol-bin + pkgdesc = Ground control for unmanned vehicles. + pkgver = 3.5.0 + pkgrel = 1 + url = http://qgroundcontrol.org/ + arch = x86_64 + license = GPL3 + depends = bzip2 + depends = dbus + depends = flac + depends = gst-plugins-base-libs + depends = libasyncns + depends = libffi + depends = libgcrypt + depends = libgpg-error + depends = libogg + depends = libsndfile + depends = libsystemd + depends = libunwind + depends = libx11 + depends = libxau + depends = libxcb + depends = libxdmcp + depends = libxext + depends = lz4 + depends = orc + depends = pcre + depends = sdl2 + depends = xz + depends = zlib + source = qgroundcontrol-3.5.0-1::https://github.com/mavlink/qgroundcontrol/releases/download/v3.5.0/qgroundcontrol.tar.bz2 + sha256sums = fc2bed2d25a44b2848e7c836779d9cc7746d4c8eb884971b1c5e92699858e1ca + +pkgname = qgroundcontrol-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0526771b55a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Kye Morton <pryre.dev@outlook.com> +pkgname=qgroundcontrol-bin +pkgver=3.5.0 +pkgrel=1 +pkgdesc="Ground control for unmanned vehicles." +arch=('x86_64') +url="http://qgroundcontrol.org/" +license=('GPL3') +depends=( 'bzip2' \ + 'dbus' \ + 'flac' \ + 'gst-plugins-base-libs' \ + 'libasyncns' \ + 'libffi' \ + 'libgcrypt' \ + 'libgpg-error' \ + 'libogg' \ + 'libsndfile' \ + 'libsystemd' \ + 'libunwind' \ + 'libx11' \ + 'libxau' \ + 'libxcb' \ + 'libxdmcp' \ + 'libxext' \ + 'lz4' \ + 'orc' \ + 'pcre' \ + 'sdl2' \ + 'xz' \ + 'zlib') + +source=('qgroundcontrol-'${pkgver}'-'${pkgrel}'::https://github.com/mavlink/qgroundcontrol/releases/download/v'${pkgver}'/qgroundcontrol.tar.bz2') +sha256sums=('fc2bed2d25a44b2848e7c836779d9cc7746d4c8eb884971b1c5e92699858e1ca') + +build() { + echo "[Desktop Entry] +Type=Application +Name=QGroundControl +Comment=Ground control for unmanned vehicles +Path=/opt/${pkgname}/ +Exec=/usr/bin/${pkgname} +Icon=/opt/${pkgname}/qgroundcontrol.png +Terminal=false +Categories=Qt;Utility;" > "$srcdir/${pkgname}.desktop" +} + +package() { + mkdir -p "${pkgdir}/opt" "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications" + cp -R "$srcdir/${pkgname%-bin}" "${pkgdir}/opt/${pkgname}" + cp "$srcdir/${pkgname}.desktop" "${pkgdir}/opt/${pkgname}" + + ln -s "/opt/${pkgname}/qgroundcontrol-start.sh" "${pkgdir}/usr/bin/${pkgname}" + ln -s "/opt/${pkgname}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" +} + +# vim:set ts=2 sw=2 et: |