openhd-git: fix missing submodules

This commit is contained in:
Rihards Skuja 2024-06-18 17:19:46 +03:00
parent aa33311685
commit 2f693a9896
Signed by: rhssk
GPG Key ID: E3BF73E10BFF4DF3
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = openhd-git pkgbase = openhd-git
pkgdesc = Open-source digital FPV system pkgdesc = Open-source digital FPV system
pkgver = 2.6.0.r1.gd19b2c9 pkgver = 2.6.0.r9.g6360d3f
pkgrel = 1 pkgrel = 2
url = https://openhdfpv.org url = https://openhdfpv.org
arch = any arch = any
license = GPL3 license = GPL3

View File

@ -2,8 +2,8 @@
pkgname=openhd-git pkgname=openhd-git
_reponame=OpenHD _reponame=OpenHD
pkgver=2.6.0.r1.gd19b2c9 pkgver=2.6.0.r9.g6360d3f
pkgrel=1 pkgrel=2
pkgdesc='Open-source digital FPV system' pkgdesc='Open-source digital FPV system'
arch=(any) arch=(any)
url='https://openhdfpv.org' url='https://openhdfpv.org'
@ -24,6 +24,11 @@ pkgver() {
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
} }
prepare() {
cd "$_reponame"
git submodule update --init --recursive
}
build() { build() {
cmake -B build -S "$_reponame/OpenHD" -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev cmake -B build -S "$_reponame/OpenHD" -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
cmake --build build cmake --build build