Skip to content

Instantly share code, notes, and snippets.

@darkcores
Created April 26, 2019 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkcores/d0ee2b9d83c64d2a85aec3773a9ccced to your computer and use it in GitHub Desktop.
Save darkcores/d0ee2b9d83c64d2a85aec3773a9ccced to your computer and use it in GitHub Desktop.
Multiplane (plummer) lenses with CUDA
# 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