2021-11-05 17:51:09 +01:00
|
|
|
# Maintainer: lod <aur@cyber-anlage.de>
|
2021-11-07 03:03:57 +01:00
|
|
|
# Contributer: Ysblokje <ysblokje at gmail dot com>
|
|
|
|
# Contributer: Jeff Youdontneedtoknow <jeffpublicjr at gmail dot com>
|
|
|
|
# Contributer: Arnaud
|
2021-11-05 17:51:09 +01:00
|
|
|
|
2021-11-07 03:03:57 +01:00
|
|
|
pkgname=edgetx-companion
|
2024-07-30 15:35:23 +02:00
|
|
|
pkgver=2.10.2
|
2024-02-21 03:37:13 +01:00
|
|
|
pkgrel=1
|
2021-11-05 22:48:22 +01:00
|
|
|
pkgdesc="EEPROM Editor and Simulator for EdgeTX RC radio transmitter firmwares"
|
2021-11-05 17:51:09 +01:00
|
|
|
arch=('x86_64')
|
|
|
|
url='https://edgetx.org/'
|
2024-01-19 19:31:27 +01:00
|
|
|
license=('GPL-2.0-only')
|
2023-11-16 17:49:30 +01:00
|
|
|
depends=('gcc-libs' 'glibc' 'hicolor-icon-theme' 'qt5-base' 'qt5-multimedia' 'sdl2')
|
2021-11-05 17:51:09 +01:00
|
|
|
optdepends=('dfu-util: tool for flashing stm32 based radios')
|
2022-01-23 11:47:39 +01:00
|
|
|
makedepends=('arm-none-eabi-binutils' 'arm-none-eabi-gcc' 'arm-none-eabi-newlib'
|
2023-10-05 09:16:44 +02:00
|
|
|
'avr-gcc' 'avr-libc' 'bc' 'clang' 'cmake' 'fox' 'gcc' 'git' 'icu' 'python'
|
2024-04-21 14:14:47 +02:00
|
|
|
'python-jinja' 'python-lz4' 'python-pillow' 'python-pyqt5' 'qt5-svg'
|
|
|
|
'qt5-tools' 'qt5-translations' 'sed' 'xsd')
|
2023-08-07 20:05:51 +02:00
|
|
|
options=('!debug')
|
2021-11-05 17:51:09 +01:00
|
|
|
provides=('companion')
|
|
|
|
conflicts=('companion')
|
2024-05-12 16:29:31 +02:00
|
|
|
source=("git+https://github.com/EdgeTX/edgetx.git#tag=v$pkgver"
|
2023-01-06 16:23:48 +01:00
|
|
|
"git+https://github.com/raphaelcoeffic/AccessDenied.git"
|
|
|
|
"git+https://github.com/FreeRTOS/FreeRTOS-Kernel.git"
|
2024-04-21 14:14:47 +02:00
|
|
|
"git+https://github.com/adfernandes/segger-rtt.git"
|
2023-01-06 16:23:48 +01:00
|
|
|
"git+https://github.com/FreeRTOS/FreeRTOS-Kernel-Community-Supported-Ports.git"
|
|
|
|
"git+https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports.git"
|
|
|
|
"git+https://github.com/EdgeTX/lvgl.git"
|
|
|
|
"git+https://github.com/nothings/stb.git"
|
2024-01-19 19:31:27 +01:00
|
|
|
install.patch)
|
2024-07-30 15:35:23 +02:00
|
|
|
b2sums=('12b701fec3f8b61df8d75e7928b8f36930b09e0eb8221eab78d9f9424c9b6ff99c237ac45063fbd4a57328c2b83be74b0008ec980d1c8b31701654f179db8b6c'
|
2023-08-07 20:05:51 +02:00
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
2024-01-27 12:03:23 +01:00
|
|
|
'97badff74d64db444a780f48a3003e4a7232e7c0ab1ef43f9adbf20044c988f41dd455dc5aad548e5d3501ccc7a1ad9967a69bf43cbd2bb133eb6d00d50f210c')
|
2021-11-05 17:51:09 +01:00
|
|
|
|
|
|
|
prepare() {
|
2023-02-18 12:03:45 +01:00
|
|
|
export EDGETX_VERSION_TAG=$pkgver
|
2024-01-19 19:31:27 +01:00
|
|
|
_pkgbase=$srcdir/${pkgname%%-*}
|
2023-01-06 16:23:48 +01:00
|
|
|
cd $_pkgbase
|
2023-11-16 17:49:30 +01:00
|
|
|
|
2023-01-06 16:23:48 +01:00
|
|
|
patch ./tools/build-companion.sh < $srcdir/install.patch
|
2024-01-19 19:31:27 +01:00
|
|
|
|
|
|
|
# Deactivate these functions; they bundle the libs for AppImage.
|
|
|
|
for pattern in "LIBSSL1" "LIBUSB1" "DFU_UTIL"; do
|
|
|
|
sed -i "s/if(${pattern}_FOUND)/if(false)/g" ./companion/src/CMakeLists.txt
|
|
|
|
done
|
2023-01-06 16:23:48 +01:00
|
|
|
|
2023-11-26 15:41:48 +01:00
|
|
|
declare -A submodules=(
|
2024-04-21 14:14:47 +02:00
|
|
|
["$_pkgbase/radio/src/thirdparty/"]="AccessDenied FreeRTOS-Kernel Segger_RTT"
|
2023-11-26 15:41:48 +01:00
|
|
|
["$_pkgbase/radio/src/thirdparty/FreeRTOS/portable/ThirdParty/"]="FreeRTOS-Kernel-Community-Supported-Ports FreeRTOS-Kernel-Partner-Supported-Ports"
|
|
|
|
["$_pkgbase/radio/src/thirdparty/libopenui/thirdparty/"]="lvgl stb"
|
|
|
|
)
|
|
|
|
|
|
|
|
for path in "${!submodules[@]}"; do
|
|
|
|
cd $path
|
|
|
|
git submodule init
|
|
|
|
for module in ${submodules[$path]}; do
|
|
|
|
git config submodule.$module.url $srcdir/$module
|
|
|
|
done
|
|
|
|
git submodule update --init
|
|
|
|
done
|
2021-11-05 17:51:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-01-27 12:28:41 +01:00
|
|
|
cd $srcdir/edgetx
|
|
|
|
./tools/build-companion.sh $MAKEFLAGS $srcdir/edgetx $srcdir/build
|
2021-11-05 17:51:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-01-06 16:23:48 +01:00
|
|
|
cd $srcdir/build/native
|
|
|
|
make DESTDIR=$pkgdir/ install
|
2021-11-05 17:51:09 +01:00
|
|
|
}
|