void-packages/srcpkgs/python-sqlparse/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

34 lines
958 B
Bash

# Template file for 'python-sqlparse'
pkgname=python-sqlparse
version=0.2.4
revision=1
noarch=yes
build_style=python-module
wrksrc="sqlparse-${version}"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="sqlparse"
short_desc="Non-validating SQL parser for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/andialbrecht/sqlparse"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
checksum=ce028444cfab83be538752a2ffdb56bc417b7784ff35bb9a3062413717807dec
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
post_install() {
vlicense LICENSE
}
python3-sqlparse_package() {
noarch=yes
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
}
}