# Template file for 'tang'
pkgname=tang
version=15
revision=2
build_style=meson
configure_args="-Duser=_tang -Dgroup=_tang"
hostmakedepends="pkg-config asciidoc socat curl jose iproute2"
makedepends="llhttp-devel jose-devel"
depends="jose"
short_desc="Server for binding data to network presence"
maintainer="Nicolas Porcel <nicolasporcel06@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/latchset/tang"
distfiles="https://github.com/latchset/tang/archive/v$version/tang-$version.tar.gz"
checksum=0bbaeaa6cde36ccc11102b9dc82dcd707f60ebd290d3930c8a1e4e55a50a7da9

system_accounts="_tang"
make_dirs="/var/db/tang 0750 _tang _tang"

post_install() {
	rm -rf ${DESTDIR}/usr/lib/systemd/
	vsv tangd
}
