summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d8f0a761768784cb79d0e2ad1b6ea84d853fe2a4 (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
# Maintainer: wangjiezhe <wangjiezhe AT yandex AT com>

pkgname=librsb
pkgver=1.2.0_rc7
pkgrel=1
pkgdesc="A shared memory parallel sparse matrix library including Sparse BLAS."
arch=('any')
url="http://sourceforge.net/projects/librsb"
license=('LGPL3')
depends=()
makedepends=()
optdepends=()
options=()
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver//_/-}.tar.gz"
        "https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver//_/-}.tar.gz.asc")
md5sums=('d98a7f86cbf17a7cb4b6493d50659e4d'
         'SKIP')
validpgpkeys=('1DBB555AEA359B8AAF0C6B88E0E669C8EF1258B8')

prepare() {
  cd "${pkgname}-${pkgver//_/-}"
  sed -i "s/CC -V/CC -v/g" configure aclocal.m4
  sed -i 's/{CC} -V/{CC} -v/g' configure configure.ac
}

build() {
  cd "${pkgname}-${pkgver//_/-}"
  ./configure --prefix=/usr \
              --enable-fortran-module-install \
              CFLAGS='-fPIC -g -O3' FCFLAGS='-fPIC -g -O3'
  make
}

check() {
  cd "${pkgname}-${pkgver//_/-}"
  make -k check
}

package() {
  cd "${pkgname}-${pkgver//_/-}"
  make DESTDIR="${pkgdir}/" install
}