diff options
author | Jia Li | 2016-08-16 14:22:52 -0400 |
---|---|---|
committer | Jia Li | 2016-08-16 14:22:52 -0400 |
commit | f19dfb476673461af3563bd169545b9142f448b4 (patch) | |
tree | 01be9f282cf159ae8ac7495b19fa441010d604ae | |
download | aur-f19dfb476673461af3563bd169545b9142f448b4.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26644bbd3281 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = alpscore-openmpi-git + pkgdesc = ALPS Core libraries for numerical simulations of condensed matter systems. + pkgver = 0.5.4.r49.g3211c91 + pkgrel = 1 + url = http://alpscore.org + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + depends = cmake + depends = boost + depends = hdf5 + depends = openmpi + provides = alpscore=0.5.4.r49.g3211c91 + conflicts = alpscore + conflicts = alpscore-openmpi + conflicts = alpscore-git + conflicts = alps + source = alpscore-openmpi-git::git+https://github.com/ALPSCore/ALPSCore.git + md5sums = SKIP + +pkgname = alpscore-openmpi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..630074f54146 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Jia Li <lijia1608@gmail.com> +pkgname=alpscore-openmpi-git +pkgver=0.5.4.r49.g3211c91 +pkgrel=1 +pkgdesc="ALPS Core libraries for numerical simulations of condensed matter systems." +arch=(i686 x86_64) +url="http://alpscore.org" +license=('GPL2') +depends=('cmake' 'boost' 'hdf5' 'openmpi') +makedepends=(git) +provides=(${pkgname%-*-*}=$pkgver) +conflicts=(alpscore alpscore-openmpi alpscore-git alps) +source=($pkgname::git+https://github.com/ALPSCore/ALPSCore.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 + CC=mpicc CXX=mpicxx cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DDocumentation=OFF -DTesting=OFF .. + make +} + +package() { + cd "$pkgname/build" + make DESTDIR="$pkgdir/" install +} |