jobextra/fastd/PKGBUILD

57 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=fastd
pkgver=22
pkgrel=04
pkgdesc="Fast and secure tunneling daemon w/o systemd"
depends=('gcc-libs' 'libcap' 'libmnl' 'libuecc>=6' 'libsodium' 'json-c' 'openssl')
makedepends=('meson' 'bison' 'clang')
checkdepends=('cmocka')
url="https://github.com/NeoRaider/fastd"
source=("https://github.com/NeoRaider/fastd/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
build() {
cd "$srcdir/fastd-${pkgver}"
meson setup \
--prefix=/usr \
-Dbuildtype=release \
-Db_lto=true \
-Dsystemd=disabled \
-Dbuild_tests=true \
. "$srcdir/build-${pkgver}"
cd "$srcdir/build-${pkgver}"
ninja
}
check() {
cd "$srcdir/build-${pkgver}"
ninja test
}
package() {
cd "$srcdir/build-${pkgver}"
DESTDIR="$pkgdir" ninja install
install -dm755 "${pkgdir}/etc/fastd/"
install -Dm644 "$srcdir/${pkgname}-${pkgver}/COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# install -Dm644 "$srcdir/${pkgname}-${pkgver}/doc/examples/fastd@.service" "${pkgdir}/usr/lib/systemd/system/fastd@.service"
install -Dm644 "$srcdir/${pkgname}-${pkgver}/doc/fastd.1" "${pkgdir}/usr/share/man/man1/fastd.1"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(19750b88705d66811b7c21b672537909c19ae6b21350688cbd1a3a54d08a8951) # fastd-22.tar.xz
## 5a0247f38f3fc27fdb467a5ebfb93b5ae4aa60ed51dae431b53b45e77f367999 fastd-22-04-x86_64.pkg.tar.lz