blob: 5e077c493722231292ee6e39997af4273bba00dd (
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
|
# Maintainer: Benjamin Trigona-Harany <arch@jaxartes.net>
_name=plpygis
pkgname=python-$_name
pkgver=0.4.0
pkgrel=1
pkgdesc="PL/Python for PostGIS"
arch=('any')
url="https://github.com/bosth/plpygis/"
license=('GPL-3.0-only')
depends=('python')
checkdepends=('python-pytest')
optdepends=('python-shapely: interoperability with Shapely geometries')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://github.com/bosth/$_name/archive/v$pkgver/$_name-$pkgver.tar.gz")
sha256sums=('99a32e1ef67f3fcf79147addd6a8eeea5f613ba034bd91a4e5269a62779c0c9d')
build() {
cd "$_name-$pkgver"
python -m build --wheel
}
check(){
cd $_name-$pkgver
pytest
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|