diff --git a/srcpkgs/python-picamera/template b/srcpkgs/python-picamera/template new file mode 100644 index 00000000000..23a5f5dcdb7 --- /dev/null +++ b/srcpkgs/python-picamera/template @@ -0,0 +1,31 @@ +# Template file for 'python-picamera' +pkgname=python-picamera +version=1.12 +revision=1 +noarch=yes +wrksrc="picamera-${version}" +build_style=python-module +pycompile_module="picamera" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="A pure Python2 interface for the Raspberry Pi camera module" +maintainer="cipr3s " +license="3-clause-BSD" +homepage="https://github.com/waveform80/picamera" +distfiles="${PYPI_SITE}/p/picamera/picamera-${version}.tar.gz" +checksum="c1d28e578385eac49bdb5f53bdb83c1075c400231593aa7fa246cdb04c67ad00" + +post_install() { + vlicense LICENSE.txt +} + +python3-picamera_package() { + noarch=yes + depends="python3" + pycompile_module="picamera" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-picamera b/srcpkgs/python3-picamera new file mode 120000 index 00000000000..baaaa4fdc86 --- /dev/null +++ b/srcpkgs/python3-picamera @@ -0,0 +1 @@ +python-picamera \ No newline at end of file