wok view rcswitch-pi/receipt @ rev 25581
Update some web_site & wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 27 11:13:29 2023 +0000 (17 months ago) |
parents | 3ab4ece3450e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rcswitch-pi"
4 GITHASH="2c9c027217ae0b4fe132e0725db166ac29f93974"
5 VERSION="${GITHASH:0:7}"
6 CATEGORY="system-tools"
7 SHORT_DESC="Control remote power sockets using the Raspberry Pi."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="https://github.com/r10r/rcswitch-pi"
12 WGET_URL="git|git://github.com/r10r/rcswitch-pi.git"
13 HOST_ARCH="arm"
15 DEPENDS="wiringpi"
16 BUILD_DEPENDS="wiringpi-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/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 git checkout ${GITHASH} &&
29 make
30 }
32 # SliTaz package testsuite
33 testsuite() {
34 readelf -h ${src}/send || return 1
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 install -m 0755 ${src}/send ${fs}/usr/bin/${PACKAGE}
42 }