# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libxft
pkgver=2.3.3
pkgrel=0
pkgdesc="FreeType-based font drawing library for X11"
url="https://www.X.Org/"
arch="all"
license="MIT"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev fontconfig-dev freetype-dev libxrender-dev
	util-macros xorgproto-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.X.Org/releases/individual/lib/libXft-$pkgver.tar.bz2"
builddir="$srcdir/libXft-$pkgver"

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

check() {
	make check
}

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

sha512sums="28fdaf3baa3b156a4a7fdd6e39c4d8026d7d21eaa9be27c9797c8d329dab691a1bc82ea6042f9d4729a9343d93787536fb7e4b606f722f33cbe608b2e79910e8  libXft-2.3.3.tar.bz2"