blob: 0ec838547318f15a8fea5fbaa0e95319ef3d9023 (
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
|
pkgname=lfortran-git
pkgver=r14109.8e4d53012
pkgrel=1
pkgdesc="Modern interactive LLVM-based Fortran compiler"
arch=('x86_64')
url="https://lfortran.org"
license=('custom:BSD-3-clause')
depends=(clang zlib ncurses xeus-zmq kokkos)
makedepends=(llvm cmake cppzmq git re2c fmt)
source=(git+https://github.com/lfortran/lfortran.git)
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/lfortran"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare () {
cd lfortran
sed -i "/StaticZSTD/d" CMakeLists.txt
}
build() {
cmake \
-S lfortran \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=TRUE \
-DWITH_LLVM=yes \
-DWITH_RUNTIME_LIBRARY=yes \
-DWITH_XEUS=yes \
-DWITH_ZLIB=yes \
-DWITH_KOKKOS=yes \
-DWITH_FMT=yes \
-DLFORTRAN_BUILD_ALL=ON
cmake --build build --target all
}
check() {
ctest --verbose --output-on-failure --test-dir build
}
package() {
DESTDIR="${pkgdir}" cmake --build build --target install
}
|