blob: 05d1a5f179bd629c979df4bcbce206abb1c61ac0 (
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
|
# Maintainer: Jia Li <lijia1608@gmail.com>
pkgname=xcfun-pyscf
_name=xcfun
pkgver=1.x
pkgrel=2
pkgdesc="Exchange-Correlation functionals with arbitrary order derivatives (compatible to PySCF)"
arch=(i686 x86_64)
url="http://dftlibs.org/xcfun/"
license=('GPL3')
makedepends=(git cmake)
provides=(${_name}=$pkgver)
conflicts=(xcfun)
source=(
"$pkgname::git+https://github.com/dftlibs/xcfun.git#commit=355f42497a9cd17d16ae91da1f1aaaf93756ae8b"
'https://github.com/pyscf/pyscf/raw/master/pyscf/lib/libxcfun.patch'
)
sha256sums=('SKIP' '3ce121a0a90146daf3d5e5c3ee457fb004113eeb764489027e085a6b1cf98b06')
build() {
cd "$pkgname"
patch -p1 < ../libxcfun.patch
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=1 \
-DXC_MAX_ORDER=3 -DXCFUN_ENABLE_TESTS=0 \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
make
}
package() {
cd "$pkgname/build"
make DESTDIR="$pkgdir/" install
}
|