blob: df0338fe61cfb538b2d354904e2490d96d36e8f6 (
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
45
46
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=lusol
pkgver=2016.1.26
pkgrel=1
pkgdesc="A sparse LU factorization for square and rectangular matrices."
arch=('i686' 'x86_64')
url="https://web.stanford.edu/group/SOL/software/lusol/"
license=('MIT/BSD')
depends=()
makedepends=(gcc-fortran)
_pkgver=2016-01-26
source=("${pkgname}.tar.gz::https://github.com/nwh/${pkgname}/archive/refs/tags/build-${_pkgver}.tar.gz")
sha256sums=('f9ff04d8be7decfaa930b3052e2ca026ad977ff300b5f27a4088bdc16de279dc')
build() {
cd "${srcdir}/${pkgname}-build-${_pkgver}"
make
}
package() {
cd "${srcdir}/${pkgname}-build-${_pkgver}/src"
# libraries
mkdir -p ${pkgdir}/usr/lib
cp clusol.o ${pkgdir}/usr/lib/
cp libclusol.so ${pkgdir}/usr/lib/
cp lusol.mod ${pkgdir}/usr/lib/
cp lusol.mod ${pkgdir}/usr/lib/
cp lusol.o ${pkgdir}/usr/lib/
cp lusol6b.o ${pkgdir}/usr/lib/
cp lusol7b.o ${pkgdir}/usr/lib/
cp lusol8b.o ${pkgdir}/usr/lib/
cp lusol_precision.mod ${pkgdir}/usr/lib/
cp lusol_precision.o ${pkgdir}/usr/lib/
cp lusol_util.o ${pkgdir}/usr/lib/
# header
mkdir -p ${pkgdir}/usr/include
cp clusol.h ${pkgdir}/usr/include/
# misc
mkdir -p ${pkgdir}/usr/share
cp README.md ${pkgdir}/usr/share/
cp lusol.txt ${pkgdir}/usr/share/
}
|