diff options
author | andalenavals | 2017-12-29 23:26:02 -0500 |
---|---|---|
committer | andalenavals | 2017-12-29 23:26:02 -0500 |
commit | b6fadcee301e0be2dacd3af80b5904ca68115809 (patch) | |
tree | 3a75b57517d00dea3f25f3b1708d06d025e7e1f8 | |
download | aur-b6fadcee301e0be2dacd3af80b5904ca68115809.tar.gz |
numpy and cython no included because not sure if they are dependencies
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2c4a14fcb5b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-palpy-git + pkgdesc = PALpy is a python interface to the PAL positional astronomy library + pkgver = pypi.1.8.1.r0.a7ad770 + pkgrel = 1 + url = https://github.com/Starlink/palpy + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = python + provides = python-palpy + conflicts = python-palpy + source = python-palpy::git+https://github.com/Starlink/palpy + md5sums = SKIP + +pkgname = python-palpy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9308078b7870 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 + +} |