blob: f1c7093128a4b23055147775ea78341f141a2f0e (
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
47
48
49
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Lukas Böger <dev___AT___lboeger___DOT___de>
pkgname=alberta
pkgver=3.1.0
pkgrel=2
pkgdesc="Adaptive multi-Level finite element toolbox"
url="https://www.alberta-fem.de"
license=(GPL2)
arch=(x86_64)
makedepends=(gcc-fortran) # blas electricfence duma
source=(https://gitlab.com/${pkgname}-fem/${pkgname}3/-/archive/v${pkgver}/${pkgname}3-v${pkgver}.tar.gz)
sha512sums=('1f206d4123db6792e0dbd8394cb01aa963678fceb28d2f0efbba99c887fc2043b1706529d05386e156abf7d19fe0c26f8c2be642e4ea0ab63eef5d2f68e3cfd0')
prepare() {
sed -i 's/dist_gnucompat_DATA/#dist_gnucompat_DATA/' ${pkgname}3-v${pkgver}/gnu-compat/Makefile.am
}
build() {
cd ${pkgname}3-v${pkgver}
./generate-alberta-automakefiles.sh
autoreconf --force --install
# for usage within DUNE, add --disable-fem-toolbox to speed up compilation
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-dim-of-world="4 5" \
--disable-debug \
--disable-graphics \
--disable-waiting-in-tests \
--without-gpskca \
--without-gltools \
--without-OpenDX \
--without-grape \
--without-silo \
CC="gcc -B/usr/bin/mold"
make
}
check() {
cd ${pkgname}3-v${pkgver}
make distcheck
}
package() {
cd ${pkgname}3-v${pkgver}
make install DESTDIR="${pkgdir}"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"
}
|