# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=signify
pkgver=32
pkgrel=1
pkgdesc="OpenBSD tool to sign and verify signatures on files"
url="https://github.com/aperezdc/signify"
arch="all"
license="ISC"
makedepends="libbsd-dev"
checkdepends="coreutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/aperezdc/signify/archive/v$pkgver.tar.gz
	gcc14.patch
	"

build() {
	make EXTRA_CFLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS" LTO=1
}

check() {
	make check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
2102c960cd5cb888938779c90334aa7b8e3c8be759a3ff9ea3f36f58881e52eb2232a48c0dfa99461e49400e3286553830194b86111bed6fb9b13d848bbd7817  signify-32.tar.gz
2e78f37bc322fc5ec4dc25497c66fd6f46798b105b5c6aaf00eb8f0925bc3773399da407670b963ec9e872429fca024f8e2f79c8cb8cf37584995457719096b9  gcc14.patch
"
