Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

35 lines
1.1 KiB
Bash

# Template file for 'fastd'
pkgname=fastd
version=21
revision=1
build_style=meson
configure_args="-Db_lto=true -Dcipher_aes128-ctr=disabled"
hostmakedepends="bison pkg-config"
makedepends="json-c-devel libcap-devel libuecc-devel libsodium-devel"
short_desc="Fast and Secure Tunneling Daemon"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://projects.universe-factory.net/projects/fastd"
distfiles="https://github.com/NeoRaider/fastd/releases/download/v$version/fastd-$version.tar.xz"
checksum=942f33bcd794bcb8e19da4c30c875bdfd4d0f1c24ec4dcdf51237791bbfb0d4c
conf_files="
/etc/fastd/secret.conf
/etc/fastd/fastd.conf"
make_dirs="/etc/fastd/peers 755 root root"
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
patch_args=-Np0
pre_configure() {
# remove ssse3 requirement to support older AMD CPUs.
printf "" > src/crypto/mac/ghash/pclmulqdq/CMakeLists.txt
}
post_install() {
vmkdir etc/fastd
vinstall ${FILESDIR}/fastd.conf 644 etc/fastd
vinstall ${FILESDIR}/secret.conf 600 etc/fastd
vsv fastd
vman doc/fastd.1
vlicense COPYRIGHT
}