python-peewee: fix pycompile_module, build C extensions

This commit is contained in:
Alessio Sergi 2018-05-20 20:40:07 +02:00
parent b167a82d20
commit ba60bdb505
1 changed files with 5 additions and 6 deletions

View File

@ -1,11 +1,12 @@
# Template file for 'python-peewee'
pkgname=python-peewee
version=3.3.4
revision=1
revision=2
wrksrc="peewee-${version}"
build_style=python-module
pycompile_module="peewee"
hostmakedepends="python-setuptools python3-setuptools"
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"
@ -13,7 +14,6 @@ homepage="https://github.com/coleifer/peewee"
distfiles="https://github.com/coleifer/peewee/archive/${version}.tar.gz"
checksum=b36f4aec9b29bc97237588534b020a4bc6c401986cc918be731490f28e05764e
alternatives="peewee:pwiz:/usr/bin/pwiz.py2"
noarch=yes
post_install() {
vlicense LICENSE
@ -21,8 +21,7 @@ post_install() {
python3-peewee_package() {
alternatives="peewee:pwiz:/usr/bin/pwiz.py3"
noarch=yes
pycompile_module="peewee"
pycompile_module="playhouse peewee.py pwiz.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3