# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: David Runge <dvzrv@archlinux.org>
# Maintainer: Christian Heusel <christian@heusel.eu>

pkgname=passt
pkgver=2025_01_21.4f2c8e7
pkgrel=1
pkgdesc="Plug A Simple Socket Transport"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://passt.top/passt/about/"
license=(
  BSD-3-Clause
  GPL-2.0-or-later
)
depends=(glibc)
optdepends=(
  'sh: for demo script'
)
source=(https://passt.top/$pkgname/snapshot/$pkgname-$pkgver.tar.zst)
sha512sums=('f013576cd577318602883d33920ee0a4c9cb6c0b7697f29e567082e894679d90671ce6ac323a86f7ab2ffa0c54643633f83edbfa6406909a38f67b758d221d6c')
b2sums=('b506f4cea98b548ee4fd1e4f7c649855cd8e8fa0e17f51c469bedaa592ab96086f48c45d73ed906c9aa3dcf62f4f919635400e204e4db2defca34688c69e5bd2')

build() {
  make VERSION="$pkgver" -C $pkgname-$pkgver
}

package() {
  make DESTDIR="$pkgdir/" prefix=/usr install -C $pkgname-$pkgver
  install -vDm 644 $pkgname-$pkgver/LICENSES/* -t "$pkgdir/usr/share/licenses/$pkgname/"
}
