# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=fstobdf
pkgver=1.0.6
pkgrel=0
pkgdesc="Create X11 bitmap font from font server font"
url="https://www.X.Org/"
arch="all"
license="X11"
depends=""
makedepends="libfs-dev util-macros libx11-dev xorgproto-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/fstobdf-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="ec5b8f62019ba51725bb47241d4fc244412f354e7c12094ed884109a88e3db9d25d41a6142fd002e6c49877b4c7f2c5dde549682dcc05f7ce102621d2c71671f  fstobdf-1.0.6.tar.bz2"