27 lines
877 B
Bash
27 lines
877 B
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
|
# Contributor: Jonathan Kotta <jpkotta AT gmail DOT com>
|
|
|
|
pkgname=python-sqlparse
|
|
pkgver=0.4.4
|
|
pkgrel=2
|
|
pkgdesc='Non-validating SQL parser for Python'
|
|
arch=(any)
|
|
url=https://github.com/andialbrecht/sqlparse
|
|
license=('BSD')
|
|
depends=('python')
|
|
makedepends=('python-setuptools' 'python-flit-core' 'python-build' 'python-installer' 'python-wheel')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/andialbrecht/sqlparse/archive/$pkgver.tar.gz")
|
|
sha256sums=('4cc5b6c4b35190fc741052bf249aa33c5fb8f4c83723aeec87f220bf06bb371a')
|
|
|
|
build() {
|
|
cd sqlparse-$pkgver
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd sqlparse-$pkgver
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|