Compare commits
3 commits
5e9eb3c390
...
2d595fa03f
Author | SHA1 | Date | |
---|---|---|---|
|
2d595fa03f | ||
|
28f5bc15b4 | ||
|
10160b646a |
1 changed files with 18 additions and 29 deletions
41
PKGBUILD
41
PKGBUILD
|
@ -19,8 +19,6 @@ makedepends=('arm-none-eabi-binutils' 'arm-none-eabi-gcc' 'arm-none-eabi-newlib'
|
||||||
options=('!debug')
|
options=('!debug')
|
||||||
provides=('companion')
|
provides=('companion')
|
||||||
conflicts=('companion')
|
conflicts=('companion')
|
||||||
_pkgbase=${pkgname%%-*}
|
|
||||||
_versuff=${pkgver/./} && _versuff=${_versuff%%.*}
|
|
||||||
source=("git+https://github.com/EdgeTX/edgetx.git#tag=v$pkgver"
|
source=("git+https://github.com/EdgeTX/edgetx.git#tag=v$pkgver"
|
||||||
"git+https://github.com/jbeder/yaml-cpp.git"
|
"git+https://github.com/jbeder/yaml-cpp.git"
|
||||||
"git+https://github.com/raphaelcoeffic/AccessDenied.git"
|
"git+https://github.com/raphaelcoeffic/AccessDenied.git"
|
||||||
|
@ -45,6 +43,8 @@ b2sums=('SKIP'
|
||||||
'6ad8cfff9f623c1d0182713839419b633f421e762d01cd46b2ce817c1552929d9ffadcb38f112d6ac9d3d196346b781d842ad0d9c34d4dbe0d5709a3edbc6026')
|
'6ad8cfff9f623c1d0182713839419b633f421e762d01cd46b2ce817c1552929d9ffadcb38f112d6ac9d3d196346b781d842ad0d9c34d4dbe0d5709a3edbc6026')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
_pkgbase=$srcdir/${pkgname%%-*}
|
||||||
|
|
||||||
export EDGETX_VERSION_TAG=$pkgver
|
export EDGETX_VERSION_TAG=$pkgver
|
||||||
|
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
|
@ -52,40 +52,29 @@ prepare() {
|
||||||
patch ./tools/build-companion.sh < $srcdir/install.patch
|
patch ./tools/build-companion.sh < $srcdir/install.patch
|
||||||
patch ./companion/src/CMakeLists.txt < $srcdir/remove-ssl-check.patch
|
patch ./companion/src/CMakeLists.txt < $srcdir/remove-ssl-check.patch
|
||||||
|
|
||||||
cd $srcdir/$_pkgbase/companion/src/thirdparty/
|
declare -A submodules=(
|
||||||
git submodule init
|
["$_pkgbase/companion/src/thirdparty/"]="yaml-cpp"
|
||||||
git config submodule.yaml-cpp.url $srcdir/yaml-cpp
|
["$_pkgbase/radio/src/thirdparty/"]="AccessDenied FreeRTOS-Kernel libopenui"
|
||||||
git submodule update --init
|
["$_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"
|
||||||
|
)
|
||||||
|
|
||||||
cd $srcdir/$_pkgbase/radio/src/thirdparty/
|
for path in "${!submodules[@]}"; do
|
||||||
|
cd $path
|
||||||
git submodule init
|
git submodule init
|
||||||
git config submodule.AccessDenied.url $srcdir/AccessDenied
|
for module in ${submodules[$path]}; do
|
||||||
git config submodule.FreeRTOS-Kernel.url $srcdir/FreeRTOS
|
git config submodule.$module.url $srcdir/$module
|
||||||
git config submodule.libopenui.url $srcdir/libopenui
|
done
|
||||||
git submodule update --init
|
|
||||||
|
|
||||||
cd $srcdir/$_pkgbase/radio/src/thirdparty/FreeRTOS/portable/ThirdParty/
|
|
||||||
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
|
|
||||||
|
|
||||||
cd $srcdir/$_pkgbase/radio/src/thirdparty/libopenui/thirdparty/
|
|
||||||
git submodule init
|
|
||||||
git config submodule.lvgl.url $srcdir/lvgl
|
|
||||||
git config submodule.stb.url $srcdir/stb
|
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
./tools/build-companion.sh $MAKEFLAGS $srcdir/$_pkgbase $srcdir/build $_versuff
|
./tools/build-companion.sh $MAKEFLAGS $_pkgbase $srcdir/build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $srcdir/build/native
|
cd $srcdir/build/native
|
||||||
make DESTDIR=$pkgdir/ install
|
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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue