blob: 7bf4343f1eab7c5e860fd4e20da47b65dee150a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Jordan Day < jordanday444 at gmail dot com >
pkgname=betaflight-configurator-bin
_pkgname=betaflight-configurator
pkgver=10.10.0
pkgrel=1
pkgdesc="Crossplatform configuration tool for the Betaflight flight control system"
arch=('x86_64')
url="https://github.com/betaflight/betaflight-configurator"
source=("https://github.com/betaflight/betaflight-configurator/releases/download/$pkgver/betaflight-configurator_"$pkgver"_linux64-portable.zip")
sha256sums=('501e55af9c3209465b39a40d724250d6d017c21f1548b348d48813889cf1574f')
options=(!strip)
license=('GPL3')
conflicts=('betaflight-configurator')
install=$pkgname.install
package() {
mkdir -p "$pkgdir/opt/betaflight"
mkdir -p "$pkgdir/usr/bin"
install -Dm644 "$srcdir/Betaflight Configurator/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
cp -dpr --no-preserve=ownership "$srcdir/Betaflight Configurator" "$pkgdir/opt/betaflight/betaflight-configurator"
ln -s "/opt/betaflight/betaflight-configurator/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
# Perm fixes https://github.com/betaflight/betaflight-configurator/issues/3009#issuecomment-1260777532
chmod +xr "$pkgdir/opt/betaflight/betaflight-configurator/chrome_crashpad_handler"
chmod +xr "$pkgdir/opt/betaflight/betaflight-configurator/betaflight-configurator"
chmod -R +Xr "$pkgdir/opt/betaflight/betaflight-configurator/"
}
|