diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5576386a5235 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> +# Contributor: E. Sheldon +pkgname=python-fitsio-git +pkgver=r639.844055b +pkgrel=1 +#epoch= + +pkgdesc=" Python interface to gbdes pixel map (astrometry) solutions " + + +arch=('any') +url="https://github.com/esheldon/fitsio" +license=('BSD') +groups=() +depends=('python' 'python-numpy') +makedepends=('git') +checkdepends=() +optdepends=() +#provides=() +#conflicts=() +#replaces=() +#backup=() +options=() +install= +changelog= +source=("$pkgname-$pkgver::git+${url}") +#noextract=() +md5sums=('SKIP') +#validpgpkeys=() + + +build() { + cd "$src" + cd "$pkgname-$pkgver" + python setup.py build +} + + +pkgver() { + cd "$pkgname-$pkgver" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + + +package() { + cd "$src" + cd "$pkgname-$pkgver" + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + +} |