# SliTaz package receipt. PACKAGE="picamera" VERSION="1.3" CATEGORY="multimedia" SHORT_DESC="A pure Python interface for the Raspberry Pi camera module." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://pypi.python.org/pypi/picamera/" WGET_URL="https://pypi.python.org/packages/source/p/$PACKAGE/$TARBALL" HOST_ARCH="arm" DEPENDS="python" BUILD_DEPENDS="python wget" # What is the latest version available today? current_version() { wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q" } # Rules to configure and make the package. compile_rules() { python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }