python-appdirs: fix pycompile_module, add missing depends

This commit is contained in:
Alessio Sergi 2018-05-24 19:39:41 +02:00
parent e44601c19d
commit 8e1541e486

View File

@ -1,18 +1,19 @@
# Template file for 'python-appdirs' # Template file for 'python-appdirs'
pkgname=python-appdirs pkgname=python-appdirs
version=1.4.3 version=1.4.3
revision=1 revision=2
noarch=yes
wrksrc="${pkgname/python-//}-${version}" wrksrc="${pkgname/python-//}-${version}"
build_style=python-module build_style=python-module
pycompile_module="appdirs" pycompile_module="appdirs.py"
hostmakedepends="python-setuptools python3-setuptools" hostmakedepends="python-setuptools python3-setuptools"
short_desc="A small Python2 module for determining appropiate appdirs" depends="python"
short_desc="Python2 module for determining appropriate platform-specific dirs"
maintainer="maxice8 <thinkabit.ukim@gmail.com>" maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT" license="MIT"
homepage="http://github.com/ActiveState/appdirs" homepage="https://github.com/ActiveState/appdirs/"
distfiles="${PYPI_SITE}/a/appdirs/appdirs-${version}.tar.gz" distfiles="${PYPI_SITE}/a/appdirs/appdirs-${version}.tar.gz"
checksum=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 checksum=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92
noarch=yes
do_check() { do_check() {
python setup.py test python setup.py test
@ -24,7 +25,8 @@ post_install() {
python3-appdirs_package() { python3-appdirs_package() {
noarch=yes noarch=yes
pycompile_module="appdirs" depends="python3"
pycompile_module="appdirs.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*