# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Maintainer:
pkgname=opmsg
pkgver=1.77
pkgrel=0
pkgdesc="opmsg gpg-like encryption system"
url="https://github.com/stealth/opmsg"
arch="all"
license="GPL-3.0-or-later"
makedepends="libressl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/stealth/opmsg/archive/rel-${pkgver}s.tar.gz"

builddir="$srcdir/$pkgname-rel-${pkgver}s"

build() {
	cd "$builddir/src"
	make DEFS="-DHAVE_BN_GENCB_NEW=0 -DHAVE_LIBRESSL" opmsg opmux
}

package() {
	cd "$builddir/src"
	mkdir -p "$pkgdir"/usr/bin
	cp opmsg opmux "$pkgdir"/usr/bin
}

sha512sums="346d989981291d266d71e06f10052c4249549445b5f2e496036311ff2cda33cef5b4f23ce61ff14391db340426af89f7fc14cde90b8837103c9ed5a2a8b03b62  opmsg-1.77.tar.gz"
