diff options
author | holishing | 2020-05-07 01:36:37 +0800 |
---|---|---|
committer | holishing | 2020-05-07 01:36:37 +0800 |
commit | 2c6e3886199862859ceca7b16ff560641e4c579e (patch) | |
tree | c1dfb81d600df4c82b50cf8dad3715926fdb83c3 /PKGBUILD | |
parent | 2f58328d7e0b6d0c2eafaf58ca36d3531a2a2a14 (diff) | |
download | aur-2c6e3886199862859ceca7b16ff560641e4c579e.tar.gz |
bumped version to v0.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -1,43 +1,41 @@ # Maintainer: Sean Ho <sean.li.shin.ho@gmail.com> _pkg=pygmt -pkgbase=python-${_pkg,,} -pkgname=("python-${_pkg,,}") -pkghashver=55af9b67b5f04a1cde30cba013eec31d44874d4f -pkgdate=20191103 -pkgver=0.0.1a0_${pkgdate} +pkgbase=python-${_pkg} +pkgname=("python-${_pkg}") +pkgver=0.1.0 pkgrel=1 pkgdesc="Python interface to the Generic Mapping Tools C library" arch=('x86_64') url="https://www.pygmt.org" license=('3-BSD') -depends=('python-numpy' 'python-pandas' 'python-xarray' 'python-netcdf4' 'python-packaging' 'gmt>=6.0.0') -makedepends=('cython' 'python-setuptools') -optdepends=('gmt-coast' 'gmt-dcw' 'ipython' 'python-matplotlib' 'jupyter' 'python-pytest' +depends=('python-numpy' 'python-pandas' 'python-xarray' 'python-netcdf4' 'python-packaging' 'gmt6>=6.0.0') +makedepends=('cython' 'python-setuptools' + 'gmt-coast' 'gmt-dcw' 'ipython' 'python-matplotlib' 'jupyter' 'python-pytest' 'python-pytest-cov' 'python-pytest-mpl' 'python-coverage' 'python-black' 'python-pylint' 'flake8' 'python-sphinx' 'python-sphinx_rtd_theme' 'python-sphinx-gallery' 'python-nbsphinx' 'python-numpydoc') -source=("https://github.com/GenericMappingTools/${_pkg,,}/archive/${pkghashver}.tar.gz") -sha256sums=('e2111299a2674427754d37d75fed1c9af107fcb07d8fb493ef09a07f3f89dc3d') +source=("https://github.com/GenericMappingTools/${_pkg,,}/archive/v${pkgver}.tar.gz") +sha256sums=('2798b95cadd29dace71f5b888981ba2b86f351da1397beefa64d119b666ffb14') build() { - cd ${_pkg}-${pkghashver} + cd ${_pkg}-${pkgver} USE_NCCONFIG=1 python setup.py build } -#check() { +check() { # depends=('ipython' 'python-matplotlib' 'jupyter' 'python-pytest' # 'python-pytest-cov' 'python-pytest-mpl' 'python-coverage' # 'python-black' 'python-pylint' 'flake8' 'python-sphinx' # 'python-sphinx_rtd_theme' 'python-sphinx-gallery' # 'python-nbsphinx' 'python-numpydoc') -# cd ${_pkg}-${pkghashver} -# PYTHONPATH="../../build/lib" python -c 'import pygmt;pygmt.test()' -#} + cd ${_pkg}-${pkgver} + PYTHONPATH="../../build/lib" python -c 'import pygmt;pygmt.test()' || return 0 +} package() { - cd ${_pkg}-${pkghashver} + cd ${_pkg}-${pkgver} USE_NCCONFIG=1 python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=2 } |