wok-6.x annotate rcswitch-pi/receipt @ rev 24740
updated libexif-gtk and libexif-gtk-dev (0.4.0 -> 0.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:07:05 2022 +0100 (2022-03-16) |
parents | 3ab4ece3450e |
children |
rev | line source |
---|---|
pankso@16467 | 1 # SliTaz package receipt. |
pankso@16467 | 2 |
pankso@16467 | 3 PACKAGE="rcswitch-pi" |
pankso@16467 | 4 GITHASH="2c9c027217ae0b4fe132e0725db166ac29f93974" |
pankso@16467 | 5 VERSION="${GITHASH:0:7}" |
pankso@16467 | 6 CATEGORY="system-tools" |
pankso@16467 | 7 SHORT_DESC="Control remote power sockets using the Raspberry Pi." |
pankso@16467 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16467 | 9 LICENSE="GPL" |
pankso@16467 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@16467 | 11 WEB_SITE="https://github.com/r10r/rcswitch-pi" |
pankso@16467 | 12 WGET_URL="git|git://github.com/r10r/rcswitch-pi.git" |
pankso@16467 | 13 HOST_ARCH="arm" |
pankso@16467 | 14 |
pankso@16467 | 15 DEPENDS="wiringpi" |
pankso@16467 | 16 BUILD_DEPENDS="wiringpi-dev" |
pankso@16467 | 17 |
pascal@24476 | 18 # What is the latest version available today? |
pascal@24476 | 19 current_version() |
pascal@24476 | 20 { |
pascal@24476 | 21 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24476 | 22 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24476 | 23 } |
pascal@24476 | 24 |
pankso@16467 | 25 # Rules to configure and make the package. |
pankso@16467 | 26 compile_rules() |
pankso@16467 | 27 { |
pankso@16467 | 28 git checkout ${GITHASH} && |
pankso@16467 | 29 make |
pankso@16467 | 30 } |
pankso@16467 | 31 |
pankso@16467 | 32 # SliTaz package testsuite |
pankso@16467 | 33 testsuite() { |
pankso@16467 | 34 readelf -h ${src}/send || return 1 |
pankso@16467 | 35 } |
pankso@16467 | 36 |
pankso@16467 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16467 | 38 genpkg_rules() |
pankso@16467 | 39 { |
pankso@16467 | 40 mkdir -p $fs/usr/bin |
pankso@16467 | 41 install -m 0755 ${src}/send ${fs}/usr/bin/${PACKAGE} |
pankso@16467 | 42 } |