blob: 5b87b44d1304ff3788e7a8cec742c2b1063f0a24 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Maintainer: Kherim Willems <aur@kher.im>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
pkgname=apbs
pkgver=3.4.1
pkgrel=2
pkgdesc="Software for biomolecular electrostatics and solvation calculations"
arch=(x86_64)
url="http://www.poissonboltzmann.org/"
license=(custom)
depends=(python blas suitesparse lapack arpack eigen boost boost-libs metis superlu gtest)
makedepends=('cmake>=3.12' make git wget)
provides=(apbs)
conflicts=(apbs-bin)
source=("https://github.com/Electrostatics/apbs/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('644e6246fd37c9dd4172fc7be1763337082ab8584dbcd53e738c831b62c89bb2')
options=(!makeflags !buildflags)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Create empty build directory
mkdir -p build
cd build
rm -rf *
# APBS compilation flags
APBS_STATIC_BUILD=OFF
BLA_VENDOR="OpenBLAS"
BUILD_DOC=ON
BUILD_TOOLS=ON
INSTALL_DIR=/usr
RELEASE_TYPE=Debug
ENABLE_PYGBE=ON
ENABLE_BEM=ON
ENABLE_GEOFLOW=ON
FETK_VERSION=57195e55351e04ce6ee0ef56a143c996a9aee7e2
ENABLE_iAPBS=ON
ENABLE_OPENMP=OFF
ENABLE_PBAM=OFF
ENABLE_PBSAM=OFF
ENABLE_PYTHON=OFF
ENABLE_TESTS=ON
GET_NanoShaper=ON
PYTHON_VERSION="3.10"
# Configure and compile
cmake \
-DCMAKE_INSTALL_INCLUDEDIR="include" \
-DBUILD_DOC=${BUILD_DOC} \
-DAPBS_STATIC_BUILD=${APBS_STATIC_BUILD} \
-DBUILD_TOOLS=O${BUILD_TOOLS} \
-DCMAKE_BUILD_TYPE=$RELEASE_TYPE \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DENABLE_PYGBE=${ENABLE_PYGBE} \
-DENABLE_BEM=${ENABLE_BEM} \
-DENABLE_iAPBS=${ENABLE_iAPBS} \
-DENABLE_GEOFLOW=${ENABLE_GEOFLOW} \
-DENABLE_OPENMP=${ENABLE_OPENMP} \
-DENABLE_PBAM=${ENABLE_PBAM} \
-DENABLE_PBSAM=${ENABLE_PBSAM} \
-DENABLE_PYTHON=${ENABLE_PYTHON} \
-DENABLE_TESTS=${ENABLE_TESTS} \
-DFETK_VERSION=${FETK_VERSION} \
-DGET_NanoShaper=${GET_NanoShaper} \
-DPYTHON_VERSION="${PYTHON_VERSION}" \
..
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/build"
# install base components
make DESTDIR="$pkgdir" install
# install license
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# cleanup conflicting symlinks
cd "${pkgdir}/usr/lib"
rm -f libamd.so libblas.so libsuperlu.so libumfpack.so
# Remove conflicting gtest headers
cd "${pkgdir}/usr/include"
rm -rf gmock gtest
cd "${pkgdir}/usr/lib"
rm -rf cmake pkgconfig
rm -rf libgmock.so libgmock_main.so libgtest.so libgtest_main.so
}
|