openhd-git: fix missing submodules

This commit is contained in:
Rihards Skuja 2024-06-20 20:19:41 +03:00
parent aa33311685
commit c356570944
Signed by: rhssk
GPG Key ID: BABE7EB1F38C7EF6
2 changed files with 9 additions and 4 deletions

View File

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

View File

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