void-packages/srcpkgs/gsl/template
2021-08-27 17:59:25 -03:00

32 lines
887 B
Bash

# Template file for 'gsl'
pkgname=gsl
version=2.7
revision=1
build_style=gnu-configure
short_desc="Numerical library for C and C++ programmers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/gsl/gsl.html"
distfiles="${GNU_SITE}/gsl/${pkgname}-${version}.tar.gz"
checksum=efbbf3785da0e53038be7907500628b466152dbc3c173a87de1b5eba2e23602b
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"
}
}