diff --git a/srcpkgs/python-rarfile/template b/srcpkgs/python-rarfile/template new file mode 100644 index 0000000000..b3c7919b73 --- /dev/null +++ b/srcpkgs/python-rarfile/template @@ -0,0 +1,31 @@ +# Template file for 'python-rarfile' +pkgname=python-rarfile +version=3.0 +revision=1 +noarch=yes +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 " +license="ISC" +homepage="https://github.com/markokr/rarfile" +distfiles="${PYPI_SITE}/r/rarfile/rarfile-${version}.tar.gz" +checksum=e816409e3b36794507cbe0b678bed3e4703d7412c5f7f9201a510ed6fdc66c35 + +post_install() { + vlicense LICENSE +} + +python3-rarfile_package() { + noarch=yes + pycompile_module="rarfile" + depends="python3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-rarfile b/srcpkgs/python3-rarfile new file mode 120000 index 0000000000..e93143007a --- /dev/null +++ b/srcpkgs/python3-rarfile @@ -0,0 +1 @@ +python-rarfile \ No newline at end of file