community/passt: fix --version output

- use upstream tag format
- add simple test of binaries
This commit is contained in:
omni 2024-09-12 10:46:04 +00:00
parent 06e155e3c0
commit 8520f3f83e

View File

@ -4,7 +4,7 @@ pkgname=passt
pkgver=2024.09.06
_commit=6b38f07
_tag=${pkgver//./_}.$_commit
pkgrel=0
pkgrel=1
pkgdesc="Plug A Simple Socket Transport"
url="https://passt.top/"
arch="all"
@ -13,11 +13,16 @@ makedepends="coreutils-fmt linux-headers"
subpackages="$pkgname-doc"
source="https://passt.top/passt/snapshot/passt-$_tag.tar.gz"
builddir="$srcdir/$pkgname-$_tag"
# complicated test setup, requires qemu and a lot of VM images
options="!check"
build() {
make
make VERSION="$_tag"
}
check() {
# complicated test setup, requires qemu and a lot of VM images
# let's just at least do this
./passt --version
./pasta --version
}
package() {