### this file is sourced not run
PKGVER=1.8.4
PKGBUILD=1
PKGARCH=x86_64

# source: step
TARBALL=ttfautohint-$PKGVER.tar.gz
MD5SUM=5e5b320217909ddfc9ba527cbf7ec823
SRC_URL=http://download.savannah.gnu.org/releases/freetype/$TARBALL
BUNDLE=

SLACKREQ='harfbuzz qt5-common'
SLACKDESC="ttfautohint: ttfautohint $PKGVER (font auto-hinting tool)
ttfautohint:
ttfautohint: ttfautohint provides a 99% automated hinting process and a
ttfautohint: platform for finely hand-hinting the last 1%.
ttfautohint: This package includes command-line and GUI frontends.
ttfautohint:
ttfautohint: https://www.freetype.org/ttfautohint/
ttfautohint:
ttfautohint:
ttfautohint:
ttfautohint:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS
	--disable-static
	--with-qt"

	# qt5
	export PATH="$PATH:/opt/qt5/bin"
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/qt5/$LIBDIR"
	export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_PATH="/opt/qt5/bin"
	export QT5_LD_LIBRARY_PATH="/opt/qt5/$LIBDIR"
	export QT5_PKG_CONFIG_PATH="/opt/qt5/$LIBDIR/pkgconfig"
	export QT5_CPLUS_INCLUDE_PATH="/opt/qt5/include"

	pkg_build_autoconf &&
	install -Dt /usr/share/man/man1 frontend/ttfautohint.1 frontend/ttfautohintGUI.1 &&
	pkg_build_slackdesc
}

# vim: ft=sh

