void-packages/srcpkgs/gsl/template

34 lines
960 B
Bash

# Template file for 'gsl'
pkgname=gsl
version=2.8
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=6a99eeed15632c6354895b1dd542ed5a855c0f15d9ad1326c6fe2b2c9e423190
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"
}
}