use version variable in PKGBUILD

This commit is contained in:
Oscar Krause 2022-12-29 12:12:26 +01:00
parent 85e2ef6930
commit ff02c77afe

View File

@ -2,7 +2,7 @@
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
pkgname=fastapi-dls
pkgver=1.0
pkgver=0.0
pkgrel=1
pkgdesc='NVIDIA DLS server implementation with FastAPI'
arch=('any')
@ -18,6 +18,11 @@ sha256sums=('SKIP'
'd8b2216b67a2f8f35ad6f07c825839794f7c34456a72caadd9fc110810348d90'
'10cb98d64f8bf37b11a60510793c187cc664e63c895d1205781c21fa2e703f32')
pkgver() {
source $srcdir/$pkgname/version.env
echo ${VERSION}
}
check() {
cd "$srcdir/$pkgname/test"
mkdir "$srcdir/$pkgname/app/cert"