32 lines
860 B
Bash
32 lines
860 B
Bash
# Template file for 'python-peewee'
|
|
pkgname=python-peewee
|
|
version=3.2.5
|
|
revision=1
|
|
wrksrc="peewee-${version}"
|
|
build_style=python-module
|
|
pycompile_module="peewee"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
short_desc="Small and simple ORM for Python2"
|
|
maintainer="johannes <johannes.brechtmann@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/coleifer/peewee"
|
|
distfiles="https://github.com/coleifer/peewee/archive/${version}.tar.gz"
|
|
checksum=7fb69135fb8d7f5e6e9098fcd27320e4bbde37288695ad5c99b3f46b4e2314e6
|
|
alternatives="peewee:pwiz:/usr/bin/pwiz.py2"
|
|
noarch=yes
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-peewee_package() {
|
|
alternatives="peewee:pwiz:/usr/bin/pwiz.py3"
|
|
noarch=yes
|
|
pycompile_module="peewee"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|