# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=passt
pkgver=2024.08.21
_commit=1d6142f
_tag=${pkgver//./_}.$_commit
pkgrel=0
pkgdesc="Plug A Simple Socket Transport"
url="https://passt.top/"
arch="all"
license="BSD-3-Clause AND GPL-2.0-or-later"
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
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
	install -Dm644 LICENSES/*.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
828fec5dc482794bcb2587f0cb2ab973b5e15ae182f45f16772d7d6ffb7b7d743d59933bd7b336a99f79b353e83b0dea0a7005185ae6dc1e0dc3da71bb05a892  passt-2024_08_21.1d6142f.tar.gz
"
