blob: 9795e825febb8e2342eeb5463d3d6c16f7b0b236 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Ysblokje <ysblokje at gmail dot com>
# Previous Maintainer: Jeff Youdontneedtoknow <jeffpublicjr at gmail dot com>
# Contributer: Arnaud
#
# Use with care, I accept no responsibility what so ever.
pkgname=('opentx-companion')
pkgver=2.3.15
pkgrel=1
pkgdesc="EEPROM Editor for OpenTX RC transmitter firmwares"
arch=('x86_64')
url="http://www.open-tx.org/"
license=('GPL')
depends=('qt5-base' 'qt5-multimedia' 'qt5-svg' 'sdl' 'hicolor-icon-theme')
optdepends=('dfu-util: tool for flashing stm32 based radios')
makedepends=('cmake' 'xsd' 'bc' 'python' 'avr-gcc' 'avr-libc' 'sed' 'qt5-tools' 'python-pyqt5' 'arm-none-eabi-gcc' 'arm-none-eabi-binutils' 'arm-none-eabi-newlib' 'fox' 'python-pillow')
provides=('companion')
conflicts=('companion' 'companion9x-svn')
source=("https://github.com/opentx/opentx/archive/release/$pkgver.tar.gz"
"installprefix.patch"
)
sha256sums=(
'91147da66aaaa6ed688a0d864d07f96cebe2cd28d4e184076a1d0e5604d7430c'
'8c83d7c176dc43415560c0f569e5e8a402d133f0abd9785a0cf4f2529a893892'
)
_srcmap=opentx-release-$pkgver
build() {
patch ${_srcmap}/tools/build-companion-release.sh $startdir/installprefix.patch
cd "${_srcmap}"
./tools/build-companion-release.sh ${srcdir}/${_srcmap} ${srcdir}/build 23
}
package() {
cd ${srcdir}/build
make -j`nproc` DESTDIR=$pkgdir/ install
cd $pkgdir/usr/share/applications
sed -i -e 's/Categories=Application/Categories=Development;/' companion23.desktop
sed -i -e 's/Categories=Application/Categories=Development;/' simulator23.desktop
}
|