# Template file for 'spiped'
pkgname=spiped
version=1.6.4
revision=1
build_style=gnu-makefile
makedepends="openssl-devel"
short_desc="Spiped secure pipe daemon"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-2-Clause"
homepage="https://www.tarsnap.com/spiped.html"
distfiles="https://www.tarsnap.com/spiped/spiped-${version}.tgz"
checksum=424fb4d3769d912b04de43d21cc32748cdfd3121c4f1d26d549992a54678e06a

pre_build() {
	export LDADD_EXTRA="$LDFLAGS"
	case "$XBPS_TARGET_MACHINE" in
		# needs special -march
		aarch64*) echo '#define CPUSUPPORT_NONE 1' > cpusupport-config.h;;
	esac
}
do_install() {
	vmkdir usr/bin
	vmkdir usr/share/man/man1
	make BINDIR=${DESTDIR}/usr/bin MAN1DIR=${DESTDIR}/usr/share/man/man1 install
	vlicense COPYRIGHT
}
