Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (31 sloc) 1.1 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=220
pkgname=missionplanner
pkgver=1.3.61
pkgrel=1
groups=('archstrike-drone')
pkgdesc="A GroundControl Station for Ardupilot"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://code.google.com/p/ardupilot-mega/wiki/Mission"
license=('GPL3')
depends=('mono')
makedepends=('unzip')
options=('!strip')
source=("http://firmware.ardupilot.org/Tools/MissionPlanner/MissionPlanner-$pkgver.zip" "missionplanner.desktop")
md5sums=('6d95a23dcc0e9e91be4c01933161dc17'
'a3b919ac40caab40816a5b700e32ce5a')
package() {
cd "$srcdir/"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/missionplanner"
cp -a --no-preserve=ownership * "$pkgdir/usr/share/missionplanner"
install -Dm644 missionplanner.desktop "$pkgdir/usr/share/applications/missionplanner.desktop"
# clean up
rm -rf "$pkgdir/usr/share/missionplanner/{MissionPlanner-$pkgver.zip,missionplanner.desktop}"
cat > "$pkgdir/usr/bin/missionplanner" << EOF
#!/bin/sh
cd /usr/share/missionplanner
mono MissionPlanner.exe
EOF
chmod +x "$pkgdir/usr/bin/missionplanner"
}