# Maintainer: Michael Zuo <muh.muhten@gmail.com>
pkgname=minisign
pkgver=0.11
pkgrel=1
pkgdesc="Dead simple tool to sign files and verify signatures"
url="https://jedisct1.github.io/minisign/"
license="ISC"
arch="all"
makedepends="cmake libsodium-dev samurai"
subpackages="$pkgname-doc"
source="https://github.com/jedisct1/minisign/archive/$pkgver/minisign-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a7445cb9646ae56fcba718f61f73486d5774d9cafe72ef051a3e60f94baf852b597261778bce50371ea5ee63395b0477bf1a33c7683fde32d003fab66029241f  minisign-0.11.tar.gz
"
