# Template file for 'spiped'
pkgname=spiped
version=1.6.3
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=70c53070dbbb10d1442754aeafb01b08ec829203d41023647dbf1a1435ee4a65

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
}
