### this file is sourced not run
PKGVER=1.3.14
PKGBUILD=1
PKGARCH=i686

# source: BLFS 11.3
TARBALL=graphite2-$PKGVER.tgz
MD5SUM=1bccb985a7da01092bfb53bb5041e836
SRC_URL=https://github.com/silnrsi/graphite/releases/download/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libgraphite2_32: libgraphite2_32 $PKGVER (Font rendering engine)
libgraphite2_32: 
libgraphite2_32: Graphite2 is a rendering engine for graphite fonts. These are 
libgraphite2_32: TrueType fonts with additional tables containing smart rendering 
libgraphite2_32: information and were originally developed to support complex 
libgraphite2_32: non-Roman writing systems. They may contain rules for e.g. ligatures, 
libgraphite2_32: glyph substitution, kerning, justification - this can make them 
libgraphite2_32: useful even on text written in Roman writing systems such as English.
libgraphite2_32: 
libgraphite2_32: This contains 32-bit version of the library.
libgraphite2_32: 
"

### default pkg_download
### default pkg_prepare
### package
pkg_package() {
	rm -rf ./usr/bin ./usr/include ./usr/share
}

### build
pkg_build() {
	# BLFS 11.3 disable test that depends on FontTools
	cd /tmp/graphite2* &&
	sed -i '/cmptest/d' tests/CMakeLists.txt &&

	# remove tests
	sed -i 's/add_subdirectory(tests)//' CMakeLists.txt &&

	pkg_build_cmake &&
	pkg_build_slackdesc
}


