aports/community/passt/APKBUILD

40 lines
1.2 KiB
Text

# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: omni <omni+alpine@hack.org>
maintainer="omni <omni+alpine@hack.org>"
pkgname=passt
pkgver=2025.06.11
_commit=0293c6f
_tag=${pkgver//./_}.$_commit
pkgrel=0
pkgdesc="Plug A Simple Socket Transport"
url="https://passt.top/"
# ppc6le: may fail in CI with the message:
# Failed to close files leaked by parent: Function not implemented
# but should pass on the ppc64le package builder, see 2024-09-12 12:
# https://irclogs.alpinelinux.org/%23alpine-devel-2024-09.log
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"
build() {
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() {
make DESTDIR="$pkgdir" prefix=/usr install
install -Dm644 LICENSES/*.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
53224aa213cce718d20c9226c025808a28941cda321e8f0af1be7bf2b9177a924abe47b71c7f5c5e512105147f515445b16db352d100ef607be595f9c15c0712 passt-2025_06_11.0293c6f.tar.gz
"