# HG changeset patch # User Aleksej Bobylev # Date 1534947031 -10800 # Node ID ad3a5f0d655c19e02fbabc130a9166a497d2428c # Parent 92f1f4b981701f8350eee37aee5677cda63d0aa9 picamera -> python-picamera diff -r 92f1f4b98170 -r ad3a5f0d655c picamera/receipt --- a/picamera/receipt Wed Aug 22 16:45:51 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -# 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" -WEB_SITE="https://pypi.python.org/pypi/picamera/" -REPOLOGY="python:picamera" -HOST_ARCH="arm" - -TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="https://pypi.python.org/packages/source/p/$PACKAGE/$TARBALL" - -DEPENDS="python" -BUILD_DEPENDS="python" - -# 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 -} - diff -r 92f1f4b98170 -r ad3a5f0d655c python-picamera/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-picamera/receipt Wed Aug 22 17:10:31 2018 +0300 @@ -0,0 +1,23 @@ +# SliTaz package receipt v2. + +PACKAGE="picamera" +VERSION="latest" +CATEGORY="multimedia" +SHORT_DESC="A pure Python interface for the Raspberry Pi camera module" +MAINTAINER="pankso@slitaz.org" +LICENSE="BSD" +WEB_SITE="https://pypi.org/project/picamera/" +HOST_ARCH="arm" +REPOLOGY="python:picamera" + +BUILD_DEPENDS="python" + +compile_rules() { + pip install --no-compile --root=$DESTDIR picamera +} + +genpkg_rules() { + VERSION=$(sed -n '/^Successfully installed/ s|.*picamera-||p' $LOGS/$PACKAGE.log) + copy @std + DEPENDS="python" +}