diff options
author | Shiv Upadhyay | 2021-02-15 19:47:14 -0500 |
---|---|---|
committer | Shiv Upadhyay | 2021-02-15 19:47:14 -0500 |
commit | 25c19b17f1ef7b55bda3a2bb059e40e09a34d480 (patch) | |
tree | 20404a2e27297b09fab115069b7d191b6c3e7e68 /PKGBUILD | |
download | aur-25c19b17f1ef7b55bda3a2bb059e40e09a34d480.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..304e7dc72ca6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jia Li <lijia1608@gmail.com> +pkgname=xcfun-git +_pkgname=xcfun +pkgver=2.1.1.r1.gf87ca0e +pkgrel=1 +pkgdesc="Exchange-Correlation functionals with arbitrary order derivatives" +arch=(i686 x86_64) +url="http://dftlibs.org/xcfun/" +license=('GPL3') +makedepends=(git cmake) +provides=(xcfun) +conflicts=(xcfun-pyscf) +conflicts=(xcfun) +source=($pkgname::git+https://github.com/dftlibs/xcfun.git) +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +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 \ + -DXCFUN_PYTHON_INTERFACE=1 \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + .. + make -j`getconf _NPROCESSORS_ONLN` +} + +package() { + cd "$pkgname/build" + make DESTDIR="$pkgdir/" install +} |