diff --git a/srcpkgs/python-pyperclip/template b/srcpkgs/python-pyperclip/template new file mode 100644 index 00000000000..5fc08cba0ed --- /dev/null +++ b/srcpkgs/python-pyperclip/template @@ -0,0 +1,32 @@ +# Template file for 'python-pyperclip' +pkgname=python-pyperclip +version=1.7.0 +revision=1 +noarch=yes +wrksrc=pyperclip-${version} +build_style=python-module +pycompile_module="pyperclip" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Cross-platform clipboard module (Python2)" +maintainer="Nathan Owens " +license="BSD-3-Clause" +homepage="https://pypi.org/project/pyperclip" +distfiles="${PYPI_SITE}/p/pyperclip/pyperclip-${version}.tar.gz + https://raw.githubusercontent.com/asweigart/pyperclip/master/LICENSE.txt" +checksum="979325468ccf682104d5dcaf753f869868100631301d3e72f47babdea5700d1c + a72b0acc9389e4c17ced890ef1b03455e04978d39e25636099b93efb76b74ead" + + post_install() { + vlicense ../LICENSE.txt + } + +python3-pyperclip_package() { + noarch=yes + depends="python3" + pycompile_module="pyperclip" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove "usr/lib/python3*" + } +} diff --git a/srcpkgs/python3-pyperclip b/srcpkgs/python3-pyperclip new file mode 120000 index 00000000000..ec52e733755 --- /dev/null +++ b/srcpkgs/python3-pyperclip @@ -0,0 +1 @@ +python-pyperclip \ No newline at end of file