Commit 6ab419e1 authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm play: add betaflight-configurator

parent 1ded7630
#!/bin/sh
PKGNAME=betaflight-configurator
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Cross platform configuration tool for the Betaflight firmware."
URL="https://github.com/betaflight/betaflight-configurator/"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ]; then
PKGURL=$(get_github_url "https://github.com/betaflight/betaflight-configurator/" "betaflight-configurator_${VERSION}_amd64.deb")
else
PKGURL="https://github.com/betaflight/betaflight-configurator/releases/download/$VERSION/betaflight-configurator_${VERSION}_amd64.deb"
fi
install_pkgurl
#!/bin/sh -x
BUILDROOT="$1"
SPEC="$2"
PRODUCT=betaflight-configurator
PRODUCTDIR=/opt/betaflight/$PRODUCT
. $(dirname $0)/common.sh
add_bin_link_command
install_file $PRODUCTDIR/icon/bf_icon_128.png /usr/share/pixmaps/$PRODUCT.png
install_file $PRODUCTDIR/$PRODUCT.desktop /usr/share/applications/$PRODUCT.desktop
fix_desktop_file
fix_desktop_file "$PRODUCTDIR/icon/bf_icon_128.png" "$PRODUCT"
# Set executable permissions for executable files and libraries
find $BUILDROOT/$PRODUCTDIR -type f \( -name "*.so" -o -name "betaflight-configurator" -o -name "chrome_crashpad_handler" \) -exec chmod a+x {} \;
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment