1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
2 # Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
3 # Contributor: NeoRaider
9 pkgdesc="Fast and secure tunneling daemon"
11 checkdepends=('cmocka')
12 depends=('gcc-libs' 'libcap' 'libmnl' 'libuecc>=6' 'libsodium' 'json-c' 'openssl')
13 url="https://github.com/NeoRaider/fastd"
15 source=("https://github.com/NeoRaider/fastd/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz")
16 sha512sums=('66196fa13c93b87b78b9e31bc267cf616dcfb4a964387c4a3f0f3176fa1529be335a6fac91379038d6a8b1a1be4fea547659551a8a9fa8d6939589d5f8a9a7aa')
19 cd "$srcdir/fastd-${pkgver}"
26 . "$srcdir/build-${pkgver}"
28 cd "$srcdir/build-${pkgver}"
33 cd "$srcdir/build-${pkgver}"
38 cd "$srcdir/build-${pkgver}"
39 DESTDIR="$pkgdir" ninja install
41 install -dm755 "${pkgdir}/etc/fastd/"
43 install -Dm644 "$srcdir/${pkgname}-${pkgver}/COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
44 install -Dm644 "$srcdir/${pkgname}-${pkgver}/doc/examples/fastd@.service" "${pkgdir}/usr/lib/systemd/system/fastd@.service"
45 install -Dm644 "$srcdir/${pkgname}-${pkgver}/doc/fastd.1" "${pkgdir}/usr/share/man/man1/fastd.1"