summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bf5177c46b2a41b7a2e81b42832d4f21340ac23 (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
# Maintainer: Christoph Freysoldt <freysoldt@mpie.de>
# Maintainer: Oliver Marquardt <marquardt@wias-berlin.de>
pkgname=sphinxdft
pkgver=3.0.9
pkgrel=0
pkgdesc="S/PHI/nX electronic structure code for density-functional theory and k dot p"
arch=('x86_64')
url="https://sxrepo.mpie.de"
license=('Apache-2.0')
depends=('lapacke' 'cblas' 'netcdf')
makedepends=('gcc' 'gcc-objc' 'gcc-libs' 'make' 'pcre2' 'lapack' 'fftw' 'cblas' 'netcdf' 'blas' 'hdf5' 'patchelf' 'lapacke')
grous=()
provides=('sphinx')
conflicts=()
replaces=()
backup=()
options=()
source=("https://sxrepo.mpie.de/attachments/download/74/sphinx-$pkgver.tar.xz")
pkgext=("https://sxrepo.mpie.de/attachments/download/74/sphinx-$pkgver.tar.xz")
sha1sums=('e4a240800bfe9912dd52bfd969bb73a944bd4729')

prep() {
./setup
}

build() {
        cd "$srcdir/sphinx-$pkgver"
        ./configure --disable-static --enable-shared --enable-netlib --enable-fftw --disable-debug --enable-openmp --enable-numlibschecks DIST_OS=Linux CXX_M_ARCH=-march=x86-64 TARGET_ARCH=x86_64
       
}
package() {
        cd "$srcdir/sphinx-$pkgver"
        make DESTDIR="$pkgdir/" install
        mkdir -p ${pkgdir}/usr/bin
        ln -s "/usr/src/packages/BUILD/sphinxdft/src/sphinx-$pkgver/bin/sphinx" $pkgdir/usr/bin/sphinx

}