diff options
author | Jia Li | 2018-07-10 17:18:16 -0400 |
---|---|---|
committer | Jia Li | 2018-07-10 17:18:16 -0400 |
commit | 481686bf7ec0d41288384b435f6fbb7b336a0360 (patch) | |
tree | 562e15745f2ac7ac46ad78dc6f563cb3625d665d | |
download | aur-481686bf7ec0d41288384b435f6fbb7b336a0360.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0326382fc14a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = xcfun-pyscf + pkgdesc = Exchange-Correlation functionals with arbitrary order derivatives (compatible to PySCF) + pkgver = 1.x + pkgrel = 1 + url = http://dftlibs.org/xcfun/ + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + provides = xcfun=1.x + conflicts = xcfun + source = xcfun-pyscf::git+https://github.com/dftlibs/xcfun.git#commit=355f42497a9cd17d16ae91da1f1aaaf93756ae8b + md5sums = SKIP + +pkgname = xcfun-pyscf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dd34476815d6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Jia Li <lijia1608@gmail.com> +pkgname=xcfun-pyscf +_name=xcfun +pkgver=1.x +pkgrel=1 +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) +md5sums=('SKIP') + +build() { + cd "$pkgname" + 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 +} |