db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / gsl / repos / testing-x86_64 / PKGBUILD
blobe520dbed74ea2f80acb426af606ad1a127a88466
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Ronald van Haren <ronald.archlinux.org>
3 # Contributor: Juergen Hoetzel <juergen.archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
6 pkgname=gsl
7 pkgver=2.7.1
8 pkgrel=3
9 pkgdesc='The GNU Scientific Library (GSL) is a modern numerical library for C and C++ programmers'
10 url='https://www.gnu.org/software/gsl/gsl.html'
11 source=(https://ftp.gnu.org/gnu/gsl/$pkgname-$pkgver.tar.gz{,.sig})
12 license=(GPL)
13 arch=(x86_64)
14 depends=(cblas)
15 sha256sums=('dcb0fbd43048832b757ff9942691a8dd70026d5da0ff85601e52687f6deeb34b'
16             'SKIP')
17 validpgpkeys=(DD61B7FC02790F978360F399245FB74BAE05B3E9) # Patrick Alken <alken@colorado.edu>
19 prepare() {
20   cd $pkgname-$pkgver
21   sed -e 's|cblas/libgslcblas.la||g' -i Makefile.* # Don't link binaries to libgslcblas
24 build() {
25   cd $pkgname-$pkgver
26   LDFLAGS+=' -lcblas' \
27   ./configure --prefix=/usr
28   make
31 check() {
32   cd $pkgname-$pkgver
33   make check
36 package() {
37   cd $pkgname-$pkgver
38   make DESTDIR="$pkgdir" install
39 # Use system cblas
40   rm "$pkgdir"/usr/lib/libgslcblas.*
41   ln -s /usr/lib/libcblas.so "$pkgdir"/usr/lib/libgslcblas.so