void-packages/srcpkgs/python-picamera/template

32 lines
820 B
Bash

# 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 <cipr3s@gmx.com>"
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
}
}