void-packages/srcpkgs/rankwidth/template

33 lines
999 B
Bash
Raw Normal View History

2021-08-31 01:36:11 +00:00
# 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"
}
}