35 lines
962 B
Bash
35 lines
962 B
Bash
# Template file for 'python-sqlparse'
|
|
pkgname=python-sqlparse
|
|
version=0.3.0
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="sqlparse-${version}"
|
|
build_style=python-module
|
|
pycompile_module="sqlparse"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
short_desc="Non-validating SQL parser for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/andialbrecht/sqlparse"
|
|
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
|
|
checksum=7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873
|
|
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-sqlparse_package() {
|
|
archs=noarch
|
|
depends="python3-setuptools"
|
|
pycompile_module="sqlparse"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3"
|
|
pkg_install() {
|
|
vmove usr/bin/sqlformat3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|