void-packages/srcpkgs/signify/template

33 lines
965 B
Bash

# Template file for 'signify'
pkgname=signify
reverts="20141230_3 20141230_2 20141230_1"
version=31
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=1155fd9eeed4a8aa20476b2333d251953ec5d52338d943a770db5b78dd8d2b74
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
}