void-packages/srcpkgs/python-rarfile/template

32 lines
785 B
Bash

# Template file for 'python-rarfile'
pkgname=python-rarfile
version=3.1
revision=2
archs=noarch
wrksrc="rarfile-${version}"
build_style=python-module
pycompile_module="rarfile"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="RAR archive reader for Python (Python2)"
maintainer="Daniel Santana <daniel@santana.tech>"
license="ISC"
homepage="https://github.com/markokr/rarfile"
distfiles="${PYPI_SITE}/r/rarfile/rarfile-${version}.tar.gz"
checksum=dc1062176c529f417522af7da1291a35b85c8017464e665aabce048cfe2659b6
post_install() {
vlicense LICENSE
}
python3-rarfile_package() {
archs=noarch
pycompile_module="rarfile"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}