add all thrid party repos to the source array
This commit is contained in:
parent
aa0d869431
commit
3a34d44bb5
1 changed files with 50 additions and 11 deletions
61
PKGBUILD
61
PKGBUILD
|
@ -20,26 +20,65 @@ provides=('companion')
|
||||||
conflicts=('companion')
|
conflicts=('companion')
|
||||||
_pkgbase=${pkgname%%-*}
|
_pkgbase=${pkgname%%-*}
|
||||||
_versuff=${pkgver/./} && _versuff=${_versuff%%.*}
|
_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/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"
|
||||||
install.patch)
|
install.patch)
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
'efa51cbbff6cb466a6a9bd681b04b158fce6e48d2db4c5cc235c1a871037f6c8')
|
'efa51cbbff6cb466a6a9bd681b04b158fce6e48d2db4c5cc235c1a871037f6c8')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd ${_pkgbase}
|
cd $_pkgbase
|
||||||
patch ./tools/build-companion.sh < ${srcdir}/install.patch
|
patch ./tools/build-companion.sh < $srcdir/install.patch
|
||||||
git submodule update --init --recursive
|
|
||||||
|
cd $srcdir/$_pkgbase/companion/src/thirdparty/
|
||||||
|
git submodule init
|
||||||
|
git config submodule.yaml-cpp.url $srcdir/yaml-cpp
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
cd $srcdir/$_pkgbase/radio/src/thirdparty/
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${_pkgbase}
|
cd $_pkgbase
|
||||||
./tools/build-companion.sh ${MAKEFLAGS} ${srcdir}/${_pkgbase} ${srcdir}/build ${_versuff}
|
./tools/build-companion.sh $MAKEFLAGS $srcdir/$_pkgbase $srcdir/build $_versuff
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd ${srcdir}/build/native
|
cd $srcdir/build/native
|
||||||
make DESTDIR=${pkgdir}/ install
|
make DESTDIR=$pkgdir/ install
|
||||||
cd ${pkgdir}/usr/share/applications
|
cd $pkgdir/usr/share/applications
|
||||||
sed -i -e 's/Categories=Application/Categories=Utility/' companion${_versuff}.desktop
|
sed -i -e 's/Categories=Application/Categories=Utility/' companion$_versuff.desktop
|
||||||
sed -i -e 's/Categories=Application/Categories=Utility/' simulator${_versuff}.desktop
|
sed -i -e 's/Categories=Application/Categories=Utility/' simulator$_versuff.desktop
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue