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

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	cmake -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

sha512sums="79bf626d0c15e39ce3bdf53600038028c0b22904b648074bf516a9ea6962c9486c41244e80637a5fbac090cce1ed9b4b3d57b8a02632646e01b43aa413cd8bd9  minisign-0.8.tar.gz"
