summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfb88a1d5af3c5865e9e7e1e60e734ef154ba113 (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
# Maintainer: Jia Li <lijia1608@gmail.com>
pkgname=python-pyscf-git
_pkgname=python-pyscf
pkgver=1.4.5.r10.g57c8912d
pkgrel=1
pkgdesc="Python-based Simulations of Chemistry Framework"
arch=(i686 x86_64)
url="http://sunqm.github.io/pyscf"
license=('BSD')
depends=('python' 'python-numpy' 'python-scipy' 'python-h5py' 'xcfun' 'libcint' 'libxc')
makedepends=('cmake')
provides=($_pkgname=$pkgver)
conflicts=($_pkgname)
source=("$pkgname::git+https://github.com/sunqm/pyscf.git")
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$pkgname"
    PYSCF_INC_DIR=/usr/lib python setup.py install --root="$pkgdir/" --optimize=1
}