# Template file for 'libhomfly'
pkgname=libhomfly
version=1.03
revision=1
build_style=gnu-configure
makedepends="gc-devel"
short_desc="Library to compute the homfly polynomial of knots and links"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="custom:unlicense"
homepage="https://github.com/miguelmarco/libhomfly/"
distfiles="https://github.com/miguelmarco/libhomfly/releases/download/${version}/libhomfly-${version}.tar.gz"
checksum=2a06e93cccd91d33ed9c345eba2e59b2ba175c11e454cf2029644a9364250871

post_install() {
	vlicense LICENSE
}

libhomfly-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove "usr/lib/pkgconfig"
	}
}
