python-toml: noarch=yes, fix pycompile_module

This commit is contained in:
Alessio Sergi 2018-05-20 20:36:19 +02:00
parent d3a24149a0
commit b167a82d20

View file

@ -1,16 +1,14 @@
# Template file for 'python-toml' # Template file for 'python-toml'
pkgname=python-toml pkgname=python-toml
version=0.9.3 version=0.9.3
revision=1 revision=2
noarch=yes noarch=yes
wrksrc=toml-$version wrksrc="toml-${version}"
build_style=python-module build_style=python-module
pycompile_module="toml" pycompile_module="toml.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python" depends="python"
hostmakedepends="python-setuptools python3-setuptools \ short_desc="Python2 library for TOML"
python-devel python3-devel"
makedepends="python-devel python3-devel"
short_desc="Python2 lib for TOML"
maintainer="AcidBear <jake.slazenger@yandex.com>" maintainer="AcidBear <jake.slazenger@yandex.com>"
license="MIT" license="MIT"
homepage="https://github.com/uiri/toml" homepage="https://github.com/uiri/toml"
@ -22,10 +20,12 @@ pkg_install() {
} }
python3-toml_package() { python3-toml_package() {
noarch=yes
depends="python3" depends="python3"
pycompile_module="toml.py"
short_desc=${short_desc/Python2/Python3} short_desc=${short_desc/Python2/Python3}
pkg_install() { pkg_install() {
vmove /usr/lib/python3* vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }
} }