summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95ea7856522406599b8b418423dd3487a7d2c7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gsl-git
pkgver=2.6.r48.ga0f31bd6
pkgrel=1
pkgdesc="A numerical library for C and C++"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/gsl/gsl.html"
license=('GPL')
depends=('glibc')
makedepends=('git')
provides=('gsl')
conflicts=('gsl')
options=('staticlibs')
source=("git+https://git.savannah.gnu.org/git/gsl.git")
sha256sums=('SKIP')


pkgver() {
  cd "gsl"

  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "gsl"

  ./autogen.sh
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "gsl"

  make check
}

package() {
  cd "gsl"

  make DESTDIR="$pkgdir" install
}