wok-6.x annotate pi-blaster/receipt @ rev 25007
updated nut (2.7.4 -> 2.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:55:37 2022 +0100 (2022-05-16) |
parents | dee220ae1803 |
children |
rev | line source |
---|---|
pankso@16577 | 1 # SliTaz package receipt. |
pankso@16577 | 2 |
pankso@16577 | 3 PACKAGE="pi-blaster" |
pankso@16577 | 4 GITHASH="177cef81774d6df5c6284c198ff818515281db14" |
pankso@16577 | 5 VERSION=${GITHASH:0:6} |
pankso@16577 | 6 CATEGORY="system-tools" |
pankso@16577 | 7 SHORT_DESC="Enables PWM on the GPIO pins you request of a Raspberry Pi." |
pankso@16577 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16577 | 9 LICENSE="MIT" |
pankso@16577 | 10 TARBALL="$PACKAGE-$VERSION.zip" |
pankso@16577 | 11 WEB_SITE="https://github.com/sarfata/pi-blaster/" |
pankso@16577 | 12 WGET_URL="https://codeload.github.com/sarfata/pi-blaster/zip/$GITHASH" |
pankso@16577 | 13 HOST_ARCH="arm" |
pankso@16577 | 14 |
pascal@24476 | 15 # What is the latest version available today? |
pascal@24476 | 16 current_version() |
pascal@24476 | 17 { |
pascal@24476 | 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24476 | 19 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q' |
pascal@24476 | 20 } |
pascal@24476 | 21 |
pankso@16577 | 22 # Rules to configure and make the package. |
pankso@16577 | 23 compile_rules() |
pankso@16577 | 24 { |
pankso@16577 | 25 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" Makefile && |
pankso@16577 | 26 make |
pankso@16577 | 27 } |
pankso@16577 | 28 |
pankso@16577 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16577 | 30 genpkg_rules() |
pankso@16577 | 31 { |
pankso@16577 | 32 mkdir -p $fs/etc $fs/usr/sbin |
pankso@16577 | 33 cp -a ${src}/${PACKAGE} ${fs}/usr/sbin |
pankso@16577 | 34 cp -a ${stuff}/init.d $fs/etc |
pankso@16577 | 35 } |