summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRadek Kiczko2018-03-07 10:39:58 +0100
committerRadek Kiczko2018-03-07 10:39:58 +0100
commit943ec798cae97ac9a358d40363917ec6272cce4e (patch)
tree5c79c74e54390972f5102473620bb8abe5ffcb23 /PKGBUILD
downloadaur-butterflight-configurator.tar.gz
Initial PKGBUILD for Butterflight configurator
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8def35dce72
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Radek Kiczko < rkiczko at gmail dot com >
+# Contributor: Jordan Day < jordanday444 at gmail dot com >
+
+pkgname=butterflight-configurator
+pkgver=10.2.0
+pkgrel=1
+pkgdesc="Crossplatform configuration tool for the Butterflight flight control system"
+arch=('x86_64')
+url="https://github.com/ButterFlight/butterflight-configurator"
+source=("https://github.com/ButterFlight/butterflight-configurator/releases/download/v$pkgver/butterflight-configurator_"$pkgver"_linux64.zip")
+md5sums=('f748036fda7c2bd72930639047792db0')
+options=(!strip)
+license=('custom')
+provides=("$pkgname")
+
+package() {
+ mkdir -p "$pkgdir/opt/butterflight"
+ mkdir -p "$pkgdir/usr/bin"
+ install -Dm644 "$srcdir/Butterflight Configurator/betaflight-configurator.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+ cp -r --preserve=all "$srcdir/Butterflight Configurator" "$pkgdir/opt/butterflight/butterflight-configurator"
+ ln -s "$pkgdir/opt/butterflight/butterflight-configurator/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+