# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>

pkgname=tnef
pkgdesc="Program for unpacking ms-tnef MIME attachment"
pkgver=1.4.18
pkgrel=0
arch="all"
url="https://github.com/verdammelt/tnef"
license='GPL-2.0-or-later   '
makedepends='autoconf automake'
source="$pkgname-$pkgver.tar.gz::https://github.com/verdammelt/tnef/archive/$pkgver.tar.gz"
options="!check" # no test suite
subpackages="$pkgname-doc"

prepare() {
	autoreconf -fi
	default_prepare
}

build() {
	./configure --prefix=/usr
	make
}

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

sha512sums="
bc53daaca9c260a804681c040d01f80bbd8b0d3597678c774975e988cdf83dad6b0d6c66b22e0d40ed2300efddef0bc663236ead4dfe687eb33af7f27dbb6000  tnef-1.4.18.tar.gz
"
