wok annotate piclass-code-examples/receipt @ rev 25005
updated ntl (11.4.3 -> 11.5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:29:07 2022 +0100 (2022-05-16) |
parents | dcdb8c03a306 |
children |
rev | line source |
---|---|
pankso@16596 | 1 # SliTaz package receipt. |
pankso@16596 | 2 |
pankso@16596 | 3 PACKAGE="piclass-code-examples" |
pankso@16596 | 4 GITHASH="0487029f735e1d9f9b41cf94e3572c1e3d7beec8" |
pankso@16596 | 5 VERSION=${GITHASH:0:7} |
pankso@16596 | 6 CATEGORY="development" |
pankso@16596 | 7 SHORT_DESC="PiClass Python and SHell code examples" |
pankso@16596 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16596 | 9 LICENSE="BSD" |
pankso@16596 | 10 TARBALL="$PACKAGE-$VERSION.tar.zip" |
pankso@16596 | 11 WEB_SITE="http://piclass.org" |
pankso@16596 | 12 WGET_URL="https://codeload.github.com/piclass/code-examples/zip/$GITHASH" |
pankso@16596 | 13 HOST_ARCH="arm" |
pankso@16596 | 14 |
pankso@16596 | 15 TAGS="python raspberrypi rpi" |
pascal@17483 | 16 DEPENDS="python python-smbus i2c-tools slitaz-arm-rpi" |
pankso@16596 | 17 |
pascal@24476 | 18 # What is the latest version available today? |
pascal@24476 | 19 current_version() |
pascal@24476 | 20 { |
pascal@24476 | 21 wget -O - https://github.com/piclass/code-examples/commits/master 2>/dev/null | \ |
pascal@24476 | 22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24476 | 23 } |
pascal@24476 | 24 |
pankso@16596 | 25 # Rules to configure and make the package. |
pankso@16596 | 26 compile_rules() |
pankso@16596 | 27 { |
pankso@16596 | 28 make DESTDIR=${DESTDIR} install |
pankso@16596 | 29 } |
pankso@16596 | 30 |
pankso@16596 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16596 | 32 genpkg_rules() |
pankso@16596 | 33 { |
pankso@16596 | 34 mkdir -p ${fs} |
pankso@16596 | 35 cp -a ${install}/* ${fs} |
pankso@16596 | 36 } |