void-packages/srcpkgs/rankwidth/template
2021-11-10 12:31:11 +01:00

32 lines
999 B
Bash

# Template file for 'rankwidth'
pkgname=rankwidth
version=0.9
revision=1
wrksrc=rw-${version}
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="igraph-devel"
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="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}