void-packages/srcpkgs/python-appdirs/template

34 lines
818 B
Bash

# Template file for 'python-appdirs'
pkgname=python-appdirs
version=1.4.4
revision=1
archs=noarch
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 module for determining appropriate platform-specific dirs"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/ActiveState/appdirs/"
distfiles="${PYPI_SITE}/a/appdirs/appdirs-${version}.tar.gz"
checksum=7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41
do_check() {
python2 setup.py test
}
post_install() {
vlicense LICENSE.txt
}
python3-appdirs_package() {
archs=noarch
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}