# Template file for 'python-picamera'
pkgname=python-picamera
version=1.13
revision=2
archs=noarch
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 <cipr3s@gmx.com>"
license="3-clause-BSD"
homepage="https://github.com/waveform80/picamera"
distfiles="${PYPI_SITE}/p/picamera/picamera-${version}.tar.gz"
checksum=890815aa01e4d855a6a95dd3ad0953b872a6b954982106407df0c5a31a163e50

# Skip hardware check
export READTHEDOCS=True

post_install() {
	vlicense LICENSE.txt
}

python3-picamera_package() {
	archs=noarch
	depends="python3"
	pycompile_module="picamera"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.txt
	}
}
