void-packages/srcpkgs/signify/template

33 lines
965 B
Bash

# Template file for 'signify'
pkgname=signify
reverts="20141230_3 20141230_2 20141230_1"
version=32
revision=1
build_style=gnu-makefile
make_build_args="BZERO=bundled"
hostmakedepends="pkg-config"
makedepends="libbsd-devel libmd-devel"
checkdepends="tar"
short_desc="OpenBSD cryptographic signing and verification tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://www.tedunangst.com/flak/post/signify"
changelog="https://raw.githubusercontent.com/aperezdc/signify/master/CHANGELOG.md"
distfiles="https://github.com/aperezdc/signify/releases/download/v${version}/signify-${version}.tar.xz"
checksum=6dd1b97fd9273d268b70c1be3c2592cbbe1488bca5e45c12c58f8c74362758d5
pre_build() {
# Allow building with musl
cp ${FILESDIR}/void.h .
for file in blf.h sha2.h ohash.h; do
vsed -e '1 i\#include "void.h"' -i $file
done
# Create license file
sed -E '3,15 !d;s/^ [*] ?//' signify.c > LICENSE
}
post_install() {
vlicense LICENSE
}