termux-packages/packages/graphviz/build.sh

29 lines
1.0 KiB
Bash
Raw Normal View History

2017-12-05 23:03:50 +01:00
TERMUX_PKG_HOMEPAGE=https://www.graphviz.org/
2016-10-29 23:58:19 +02:00
TERMUX_PKG_DESCRIPTION="Rich set of graph drawing tools"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="EPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
2021-12-08 12:12:51 +01:00
TERMUX_PKG_VERSION=2.50.0
2021-12-02 15:13:31 +01:00
TERMUX_PKG_SRCURL=https://gitlab.com/graphviz/graphviz/-/archive/$TERMUX_PKG_VERSION/graphviz-$TERMUX_PKG_VERSION.tar.gz
2021-12-08 12:12:51 +01:00
TERMUX_PKG_SHA256=afa48581f764a35e148909cc96a0308ec2356b5225b64af12492f3392f20ef1c
2019-06-19 20:40:23 +02:00
TERMUX_PKG_DEPENDS="libandroid-glob, libc++, libcairo, pango, libexpat, libltdl, librsvg, libgd, zlib"
TERMUX_PKG_BREAKS="graphviz-dev"
TERMUX_PKG_REPLACES="graphviz-dev"
TERMUX_PKG_BUILD_DEPENDS="libtool"
2021-12-08 10:40:13 +01:00
TERMUX_PKG_FORCE_CMAKE=true
2016-10-29 22:33:37 +02:00
TERMUX_PKG_RM_AFTER_INSTALL="bin/*-config share/man/man1/*-config.1"
termux_step_post_make_install() {
# Some binaries (dot_builtins, gvpack) links against these:
cd $TERMUX_PREFIX/lib
for lib in graphviz/*.so*; do
2019-02-12 09:41:30 +01:00
ln -s -f $lib $(basename $lib)
done
}
termux_step_create_debscripts() {
2017-08-15 07:09:08 +02:00
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo "dot -c" >> postinst
echo "exit 0" >> postinst
chmod 0755 postinst
2016-10-29 22:33:37 +02:00
}