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

build() {
	./build program
	./build man
}

check() {
	./tmp/bin/binary --version
}

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

sha512sums="
019089eaeffb474fffded265ca7c8d5ff9ba516fbaf2d88d03951ed9ad031e16eeceae2bd10bb09f39e658dff839f9c02b3290b929b8b7b2dc8eb044832c50ad  gpg-remailer-3.04.07.tar.gz
"
