Created
April 26, 2019 12:13
-
-
Save darkcores/d0ee2b9d83c64d2a85aec3773a9ccced to your computer and use it in GitHub Desktop.
Multiplane (plummer) lenses with CUDA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Your Name <jorrit@darkcores.net> | |
pkgname=multiplanecuda-git | |
pkgver=20190426 | |
pkgrel=1 | |
epoch= | |
pkgdesc="Multiplane gravitional lensing with cuda" | |
arch=('x86_64') | |
url="https://github.com/darkcores/MultiplaneLensing" | |
license=('GPL3') | |
groups=() | |
depends=('cuda') | |
makedepends=('git' 'gcc') | |
checkdepends=() | |
optdepends=() | |
provides=("${pkgname%-VCS}") | |
conflicts=("${pkgname%-VCS}") | |
replaces=() | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=("multiplanecuda-git::git+https://github.com/darkcores/MultiplaneLensing") | |
noextract=() | |
md5sums=('SKIP') | |
validpgpkeys=() | |
prepare() { | |
cd "$srcdir/${pkgname%-VCS}" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$srcdir/${pkgname%-VCS}" | |
cmake -DCMAKE_BUILD_TYPE=RELEASE CMakeLists.txt | |
make | |
} | |
check() { | |
cd "$srcdir/${pkgname%-VCS}" | |
} | |
package() { | |
cd "$srcdir/${pkgname%-VCS}" | |
make DESTDIR="$pkgdir/" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment