summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9308078b787085a9c489f4d9b1802b18927c9584 (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
# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: Tim Jenness 
_pkgname=python-palpy
pkgname=${_pkgname}-git
pkgver=pypi.1.8.1.r0.a7ad770
pkgrel=1
pkgdesc=" PALpy is a python interface to the PAL positional astronomy library  "
arch=('i686' 'x86_64')
url="https://github.com/Starlink/palpy"
license=('GPL')
depends=('python')
makedepends=('git' )
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}")
md5sums=('SKIP')
pkgver() {
	 cd "${_pkgname}"
	 printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "${_pkgname}"
	git submodule init
	git submodule update
	python setup.py build
}


package() {
	  cd "${_pkgname}"	
	  python setup.py install --root=${pkgdir} --prefix=/usr
	  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE

}