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
|
2023-11-16 17:49:30 +01:00
|
|
|
pkgver=2.9.2
|
2021-11-05 17:51:09 +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/'
|
2021-11-05 22:48:22 +01:00
|
|
|
license=('GPL2')
|
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'
|
|
|
|
'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')
|
2023-01-06 16:23:48 +01:00
|
|
|
source=("git+https://github.com/EdgeTX/edgetx.git#tag=v$pkgver"
|
|
|
|
"git+https://github.com/jbeder/yaml-cpp.git"
|
|
|
|
"git+https://github.com/raphaelcoeffic/AccessDenied.git"
|
|
|
|
"git+https://github.com/FreeRTOS/FreeRTOS-Kernel.git"
|
|
|
|
"git+https://github.com/edgetx/libopenui.git"
|
|
|
|
"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"
|
2023-11-16 17:49:30 +01:00
|
|
|
install.patch
|
|
|
|
remove-ssl-check.patch)
|
2023-08-07 20:05:51 +02:00
|
|
|
b2sums=('SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP'
|
2023-11-16 17:49:30 +01:00
|
|
|
'2f2d110ba03c3d852bec93a0705570df93e72f5e3757bd64494083c5a1ae59c5228024fca563043c05014b1962ccde88e029a6bac2fe36be6e852a53b35a43fb'
|
|
|
|
'6ad8cfff9f623c1d0182713839419b633f421e762d01cd46b2ce817c1552929d9ffadcb38f112d6ac9d3d196346b781d842ad0d9c34d4dbe0d5709a3edbc6026')
|
2021-11-05 17:51:09 +01:00
|
|
|
|
|
|
|
prepare() {
|
2023-11-26 15:38:32 +01:00
|
|
|
_pkgbase=$srcdir/${pkgname%%-*}
|
|
|
|
_versuff=${pkgver/./} && _versuff=${_versuff%%.*}
|
|
|
|
|
2023-02-18 12:03:45 +01:00
|
|
|
export EDGETX_VERSION_TAG=$pkgver
|
2023-08-07 20:05:51 +02:00
|
|
|
|
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
|
2023-11-16 17:49:30 +01:00
|
|
|
patch ./companion/src/CMakeLists.txt < $srcdir/remove-ssl-check.patch
|
2023-01-06 16:23:48 +01:00
|
|
|
|
2023-11-26 15:38:32 +01:00
|
|
|
cd $_pkgbase/companion/src/thirdparty/
|
2023-01-06 16:23:48 +01:00
|
|
|
git submodule init
|
|
|
|
git config submodule.yaml-cpp.url $srcdir/yaml-cpp
|
|
|
|
git submodule update --init
|
|
|
|
|
2023-11-26 15:38:32 +01:00
|
|
|
cd $_pkgbase/radio/src/thirdparty/
|
2023-01-06 16:23:48 +01:00
|
|
|
git submodule init
|
|
|
|
git config submodule.AccessDenied.url $srcdir/AccessDenied
|
|
|
|
git config submodule.FreeRTOS-Kernel.url $srcdir/FreeRTOS
|
|
|
|
git config submodule.libopenui.url $srcdir/libopenui
|
|
|
|
git submodule update --init
|
|
|
|
|
2023-11-26 15:38:32 +01:00
|
|
|
cd $_pkgbase/radio/src/thirdparty/FreeRTOS/portable/ThirdParty/
|
2023-01-06 16:23:48 +01:00
|
|
|
git submodule init
|
|
|
|
git config submodule.FreeRTOS-Kernel-Community-Supported-Ports.url $srcdir/Community-Supported-Ports
|
|
|
|
git config submodule.FreeRTOS-Kernel-Partner-Supported-Ports.url $srcdir/FreeRTOS-Kernel-Partner-Supported-Ports
|
|
|
|
git submodule update --init
|
|
|
|
|
2023-11-26 15:38:32 +01:00
|
|
|
cd $_pkgbase/radio/src/thirdparty/libopenui/thirdparty/
|
2023-01-06 16:23:48 +01:00
|
|
|
git submodule init
|
|
|
|
git config submodule.lvgl.url $srcdir/lvgl
|
|
|
|
git config submodule.stb.url $srcdir/stb
|
|
|
|
git submodule update --init
|
2021-11-05 17:51:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-01-06 16:23:48 +01:00
|
|
|
cd $_pkgbase
|
2023-11-26 15:38:32 +01:00
|
|
|
./tools/build-companion.sh $MAKEFLAGS $_pkgbase $srcdir/build $_versuff
|
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
|
|
|
|
cd $pkgdir/usr/share/applications
|
|
|
|
sed -i -e 's/Categories=Application/Categories=Utility/' companion$_versuff.desktop
|
|
|
|
sed -i -e 's/Categories=Application/Categories=Utility/' simulator$_versuff.desktop
|
2021-11-05 17:51:09 +01:00
|
|
|
}
|