33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
# Template file for 'python-peewee'
|
|
pkgname=python-peewee
|
|
version=3.9.3
|
|
revision=1
|
|
wrksrc="peewee-${version}"
|
|
build_style=python-module
|
|
pycompile_module="playhouse peewee.py pwiz.py"
|
|
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
|
|
makedepends="python-devel python3-devel sqlite-devel"
|
|
short_desc="Small and simple ORM for Python2"
|
|
maintainer="johannes <johannes.brechtmann@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/coleifer/peewee"
|
|
changelog="https://raw.githubusercontent.com/coleifer/peewee/master/CHANGELOG.md"
|
|
distfiles="https://github.com/coleifer/peewee/archive/${version}.tar.gz"
|
|
checksum=36994469b632fede6b92bd7663ff5b6afbc02e42d96b79ed078993de7e3a3d9d
|
|
alternatives="peewee:pwiz:/usr/bin/pwiz.py2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-peewee_package() {
|
|
alternatives="peewee:pwiz:/usr/bin/pwiz.py3"
|
|
pycompile_module="playhouse peewee.py pwiz.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|