wok-current view piclass-code-examples/receipt @ rev 24545

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