void-packages/srcpkgs/gsl/template
2022-01-12 16:48:22 +01:00

33 lines
962 B
Bash

# Template file for 'gsl'
pkgname=gsl
version=2.7.1
revision=1
build_style=gnu-configure
short_desc="Numerical library for C and C++ programmers"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/gsl/gsl.html"
changelog="http://git.savannah.gnu.org/cgit/gsl.git/plain/NEWS"
distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
checksum=dcb0fbd43048832b757ff9942691a8dd70026d5da0ff85601e52687f6deeb34b
case $XBPS_TARGET_MACHINE in
# avoid numerical noise caused by extended-precision of registers
i686*) CFLAGS=-ffloat-store ;;
esac
gsl-devel_package() {
depends="gsl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/gsl-config
vmove usr/share/man/man1/gsl-config.1
vmove usr/share/man/man3
vmove usr/share/aclocal
vmove usr/share/info
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}