Skip to content

Commit

Permalink
signify: update to 31.
Browse files Browse the repository at this point in the history
Add needed libmd makedepend and tar checkdepend,
use vsed instead of sed for the file patching,
and use sed instead of head to extract a nicer LICENSE file

Also add changelog
  • Loading branch information
mtboehlke committed Aug 10, 2022
1 parent 37cd474 commit b8d7d6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 9 additions & 6 deletions srcpkgs/signify/template
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
# Template file for 'signify'
pkgname=signify
reverts="20141230_3 20141230_2 20141230_1"
version=30
version=31
revision=1
build_style=gnu-makefile
make_build_args="BZERO=bundled"
hostmakedepends="pkg-config"
makedepends="libbsd-devel"
makedepends="libbsd-devel libmd-devel"
checkdepends="tar"
short_desc="OpenBSD cryptographic signing and verification tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="http://www.tedunangst.com/flak/post/signify"
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=f68406c3085ef902e85500e6c0b90e4c3f56347e5efffc0da7b6fb47803c8686
checksum=1155fd9eeed4a8aa20476b2333d251953ec5d52338d943a770db5b78dd8d2b74

pre_build() {
# Allow building with musl
cp ${FILESDIR}/void.h .
for file in blf.h sha2.h ohash.h; do
sed -e '1 i\#include "void.h"' -i $file
vsed -e '1 i\#include "void.h"' -i $file
done

# Create license file
head -n 16 signify.c > LICENSE
sed -E '3,15 !d;s/^ [*] ?//' signify.c > LICENSE
}

post_install() {
Expand Down
1 change: 0 additions & 1 deletion srcpkgs/signify/update

This file was deleted.

0 comments on commit b8d7d6a

Please sign in to comment.