# Contributor: Shiz <hi@shiz.me>
# Maintainer: Shiz <hi@shiz.me>
pkgname=gpg-remailer
pkgver=3.04.01
pkgrel=0
pkgdesc="Decrypt GPG messages and re-encrypt them to a well-defined group"
url="https://fbb-git.github.io/gpg-remailer/"
arch="all"
license="GPL-3.0-or-later"
depends="gnupg mailutils"
makedepends="icmake bash yodl bobcat-dev"
subpackages="$pkgname-doc"
source="gpg-remailer-$pkgver.tar.gz::https://github.com/fbb-git/gpg-remailer/archive/$pkgver.tar.gz
	avoid-gnuisms.patch"
builddir="$srcdir/gpg-remailer-$pkgver/gpg-remailer"

build() {
	cd "$builddir"
	./build program strip
	./build man
}

check() {
	cd "$builddir"
	./tmp/bin/binary --version
}

package() {
	cd "$builddir"
	./build install bm "$pkgdir"
	# remove HTML documentation.
	rm -rf "$pkgdir"/usr/share/doc
}

sha512sums="ffe660b224681001391864a799c83d4824990d497d8785f14eab580b909f0e5c64cc8dff29a879f9b7ffd1078e971d0ec03876b63b86567df3581c821dce4668  gpg-remailer-3.04.01.tar.gz
7b3528add0f0c62f999719499fbd043b0926f9440fc0a626e8b2de26ca2aebd6dfde8e3d6180ee45cf45c9883908975266b4e91a6b998178c35a57dcd3a1f937  avoid-gnuisms.patch"
