void-packages/srcpkgs/rankwidth/template
Gonzalo Tornaría ab89ca51f8 rankwidth: remove dependency on igraph
It turns out that rankwidth only depends on igraph for the binary, but
we don't ship the binary anyway (for sagemath we only need the library).
2023-02-13 17:47:53 +01:00

31 lines
1,003 B
Bash

# Template file for 'rankwidth'
pkgname=rankwidth
version=0.9
revision=3
build_style=gnu-configure
# don't depend on igraph, we don't ship the binary anyway
configure_args="--disable-executable"
short_desc="Calculates rank-width and rank-decompositions"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/rankwidth/"
distfiles="${SOURCEFORGE_SITE}/rankwidth/rw-$version.tar.gz"
checksum=c1e03506fe25cdfcb428c051fc56b2d2affb5b06fba3f2ce756631466befb441
post_install() {
# the binary conflicts with rw package, and it's not needed for
# sagemath; if ever someone needs it we can decide whether to
# rename it or install in a separate package with conflicts=rw
rm -rf ${DESTDIR}/usr/bin/rw
rm -rf ${DESTDIR}/usr/share/doc/rw
}
rankwidth-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}