wok-next rev 20925
picamera -> python-picamera
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Aug 22 17:10:31 2018 +0300 (2018-08-22) |
parents | 92f1f4b98170 |
children | 680393ac1f5c |
files | picamera/receipt python-picamera/receipt |
line diff
1.1 --- a/picamera/receipt Wed Aug 22 16:45:51 2018 +0300 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,30 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="picamera" 1.7 -VERSION="1.3" 1.8 -CATEGORY="multimedia" 1.9 -SHORT_DESC="A pure Python interface for the Raspberry Pi camera module." 1.10 -MAINTAINER="pankso@slitaz.org" 1.11 -LICENSE="BSD" 1.12 -WEB_SITE="https://pypi.python.org/pypi/picamera/" 1.13 -REPOLOGY="python:picamera" 1.14 -HOST_ARCH="arm" 1.15 - 1.16 -TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WGET_URL="https://pypi.python.org/packages/source/p/$PACKAGE/$TARBALL" 1.18 - 1.19 -DEPENDS="python" 1.20 -BUILD_DEPENDS="python" 1.21 - 1.22 -# Rules to configure and make the package. 1.23 -compile_rules() 1.24 -{ 1.25 - python setup.py install --root=$DESTDIR 1.26 -} 1.27 - 1.28 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 -genpkg_rules() 1.30 -{ 1.31 - cp -a $install/usr $fs 1.32 -} 1.33 -
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/python-picamera/receipt Wed Aug 22 17:10:31 2018 +0300 2.3 @@ -0,0 +1,23 @@ 2.4 +# SliTaz package receipt v2. 2.5 + 2.6 +PACKAGE="picamera" 2.7 +VERSION="latest" 2.8 +CATEGORY="multimedia" 2.9 +SHORT_DESC="A pure Python interface for the Raspberry Pi camera module" 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +LICENSE="BSD" 2.12 +WEB_SITE="https://pypi.org/project/picamera/" 2.13 +HOST_ARCH="arm" 2.14 +REPOLOGY="python:picamera" 2.15 + 2.16 +BUILD_DEPENDS="python" 2.17 + 2.18 +compile_rules() { 2.19 + pip install --no-compile --root=$DESTDIR picamera 2.20 +} 2.21 + 2.22 +genpkg_rules() { 2.23 + VERSION=$(sed -n '/^Successfully installed/ s|.*picamera-||p' $LOGS/$PACKAGE.log) 2.24 + copy @std 2.25 + DEPENDS="python" 2.26 +}