wok-next view rcswitch-pi/receipt @ rev 18697
Fix pilot-link(-dev) packaging
author | Lucas Levrel <llevrel@yahoo.fr> |
---|---|
date | Mon Dec 14 09:55:05 2015 +0100 (2015-12-14) |
parents | |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 git checkout ${GITHASH} &&
22 make
23 }
25 # SliTaz package testsuite
26 testsuite() {
27 readelf -h ${src}/send || return 1
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 install -m 0755 ${src}/send ${fs}/usr/bin/${PACKAGE}
35 }