summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60e6405e73feaf664a512ba1bcb7471c344a1e9d (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
38
39
40
41
42
# Maintainer: fdiblen <fdiblen at gmail dot com>
#

pkgname="sagecal-git"
pkgver=1
pkgrel=1
pkgdesc="SAGECal is a very fast, memory efficient and GPU accelerated radio interferometric calibration program."
arch=('i686' 'x86_64')
url="https://github.com/nlesc-dirac/sagecal"
license=('GPL-2.0')
makedepends=('casacore' 'make' 'pkg-config' 'binutils' 'boost' 'boost-libs' 'cmake' 'gcc-fortran' 'gcc' 'flex' 
	     'bison' 'openblas' 'lapack' 'cfitsio' 'wcslib' 'git'
	     )
depends=('casacore')
optdepends=('fftw' 'hdf5' 'python2-numpy' 'ncurses')
conflicts=('sagecal' 'sagecal-gpu')
provides=("${pkgname}")
source=("$pkgname::git+https://github.com/nlesc-dirac/sagecal.git")
md5sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}"
    mkdir build

    cd build
    cmake .. \
      -DCMAKE_CXX_COMPILER=/usr/sbin/g++ \
      -DCMAKE_C_COMPILER=/usr/sbin/gcc \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -D_GLIBCXX_USE_CXX11_ABI=0 \
      -DENABLE_CUDA=OFF
    make
}

package() {
    cd "${srcdir}/${pkgname}/build"
    install -d ${pkgdir}/usr/share/licenses/${pkgname}
    #install -m 644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
    make DESTDIR="${pkgdir}" install
}

# vim:set ts=4 sw=2 ft=sh et: