summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..64e37130e5b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: PumpkinCheshire <sollyonzou@gmail.com>
+
+_name=libpysal
+pkgname=python-libpysal
+pkgver=4.3.0
+pkgrel=1
+pkgdesc="Core components of Python Spatial Analysis Library."
+arch=('any')
+url="https://pysal.org/libpysal/"
+license=('BSD')
+depends=('python-beautifulsoup4' 'python-jinja' 'python-numpy' 'python-pandas' 'python-requests' 'python-scipy')
+optdepends=(
+ 'python-pypandoc: documents'
+ 'python-nbsphinx: documents'
+ 'python-sphinx: documents'
+ 'python-sphinx-gallery: documents'
+ 'python-sphinx-bootstrap-theme: documents'
+ 'python-sphinxcontrib-bibtex: documents'
+ 'python-numpydoc: documents'
+ 'python-pytest: tests'
+ 'python-pytest-cov: tests'
+ 'pytest-cov: tests'
+ 'python-matplotlib: tests, plus conda'
+ 'python-codecov: tests'
+ 'python-geomet: plus pip'
+ 'python-bokeh: plus conda'
+ 'python-folium: plus conda'
+ 'python-geojson: plus conda'
+ 'python-geopandas: plus conda'
+ 'python-mplleaflet: plus conda'
+ 'python-numba: plus conda'
+ 'python-numexpr: plus conda'
+ 'python-networkx: plus conda'
+ 'python-scikit-learn: plus conda'
+ 'python-seaborn: plus conda'
+ 'python-sqlalchemy: plus conda'
+ 'python-statsmodels: plus conda'
+ 'python-xarray: plus conda'
+ 'python-black: dev tool'
+ 'python-pre-commit: dev tool'
+)
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('d7cb34aa20f07c93d8f1f12431aa7c6aa9a08b92cc4396022a04fc2086e5d2d7')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}