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

# source: BLFS 11.3-648
TARBALL=graphviz-$PKGVER.tar.bz2
MD5SUM=ed97ac0f4a45ee0578ef8216503105a7
SRC_URL=https://gitlab.com/graphviz/graphviz/-/archive/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="graphviz-base: graphviz-base $PKGVER (Graph visualisation software)
graphviz-base:
graphviz-base: Graphviz is open source graph visualization software. Graph
graphviz-base: visualization is a way of representing structural information as
graphviz-base: diagrams of abstract graphs and networks.
graphviz-base:
graphviz-base: This is the base version of graphviz which has no dependencies.
graphviz-base: It can produce standard graphs but does not include any viewers.
graphviz-base:
graphviz-base: http://www.graphviz.org/
graphviz-base:
"

### default pkg_download
pkg_prepare() {
	local major=${PKGVER%%.*}
	local minor=${PKGVER#*.}; minor=${minor%.*}
	local patch=${PKGVER#"$major.$minor"}; patch=${patch#.}
	pkg_prepare_default &&
	cd tmp/graphviz-* &&
	sed -E -i \
		-e "s/^(GRAPHVIZ_VERSION_MAJOR=).*/\1$major/" \
		-e "s/^(GRAPHVIZ_VERSION_MINOR=).*/\1$minor/" \
		-e "s/^(GRAPHVIZ_VERSION_PATCH=).*/\1$patch/" \
		-e "s/^(GRAPHVIZ_VERSION_DATE=).*/\1$(date +%Y%m%d)/" \
		-e "s/^(GRAPHVIZ_CHANGE_DATE=).*/\1/" \
		autogen.sh
}
### default pkg_package
### build
pkg_build() {
	cd /tmp/graphviz* &&
	./autogen.sh &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	rm -fr  /etc/ld.so.cache /var/cache
}

# vim:ft=sh:
