summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18f43fb08e12d30749e826c66461d6ce0005530a (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
# Maintainer: fdiblen <fdiblen at gmail dot com>
#
pkgname="casacore-git"
pkgver=r23271.a4231ee8b
pkgrel=1
pkgdesc="Suite of c++ libraries for radio astronomy data processing"
arch=('i686' 'x86_64')
url="http://casacore.github.io/casacore/"
license=('GPL2')
makedepends=('make' 'pkg-config' 'binutils' 'boost' 'boost-libs' 'cmake' 'gcc-fortran' 'gcc' 'flex' 'git'
     	     'bison' 'blas-openblas' 'cfitsio' 'wcslib' 'python-numpy')
depends=()
optdepends=('sofa: only for testing casacore measures'
     	    'fftw' 'hdf5' 'ncurses')
conflicts=('casacore')
provides=("${pkgname}")
source=("$pkgname::git+https://github.com/casacore/casacore.git")
md5sums=('SKIP')

pkgver() {
	cd ${pkgname}
    	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    	cd "${srcdir}/${pkgname}"
    	[[ -d build ]] && rm -rf build
    	mkdir build && cd build

    	cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    	make
}

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