# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=altermime
pkgver=0.3.11
pkgrel=4
pkgdesc="alterMIME - MIME encoded email pack alteration tool"
url="https://pldaniels.com/altermime"
arch="all"
license="BSD-2-Clause"
# no check provided by upstream
options="!check"
subpackages="$pkgname-doc"
source="https://pldaniels.com/altermime/altermime-$pkgver.tar.gz
	makefile-flags.patch"

build() {
	make
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 README \
		"$pkgdir"/usr/share/doc/$pkgname/README
}
sha512sums="9e5082abc72a0f0d77ee947c61c654ff7f90151b7d7a7e36819e85420dbd9e7cfdb4d053cebcbfd629380aab3d9998ed802a59212ac5c433d50e006b1558dc5f  altermime-0.3.11.tar.gz
e80bcedd3aa7aa921d219853dad44ed9060d93b6620589dbcf56346da14d73bb6dea4de2956c97f5e6646e4b989363a881e6340bd0e92cad5b3694ab4afbac29  makefile-flags.patch"
