# Contributor: Joshua Murphy <joshuamurphy@posteo.net>
# Maintainer: Joshua Murphy <joshuamurphy@posteo.net>
pkgname=t1utils
pkgver=1.42
pkgrel=0
pkgdesc="Utilities for manipulating Adobe Type 1 font software"
url="https://github.com/kohler/t1utils"
arch="all"
# https://github.com/kohler/click/blob/master/LICENSE
license="custom"
makedepends="autoconf automake libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kohler/t1utils/archive/v$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare
	autoreconf -fvi
}

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
29e983a488a0c51e31fe45572d66cfa8a987d85b32f303873c35d0551db29c09d424eb10e76374f908ef62bc7c60236231bbddf40eb60f1be9652322da4b1f5e  t1utils-1.42.tar.gz
"
