wok annotate stm8flash/receipt @ rev 25363
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 28 08:19:17 2022 +0000 (2022-07-28) |
parents | 4475b80d02a6 |
children | c965782a38e0 |
rev | line source |
---|---|
psychomaniak@20035 | 1 # SliTaz package receipt. |
psychomaniak@20035 | 2 |
psychomaniak@20035 | 3 PACKAGE="stm8flash" |
psychomaniak@20035 | 4 VERSION="20170817" |
psychomaniak@20035 | 5 GITHASH="e322a7a" |
psychomaniak@20035 | 6 SHORT_DESC="program your stm8 devices with SWIM/stlinkv(1,2)" |
psychomaniak@20035 | 7 LICENSE="GPL2" |
psychomaniak@20035 | 8 CATEGORY="electronics" |
psychomaniak@20035 | 9 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@20035 | 10 TARBALL="$GITHASH.tar.gz" |
psychomaniak@20035 | 11 |
psychomaniak@20035 | 12 WEB_SITE="https://github.com/vdudouyt/stm8flash" |
psychomaniak@20035 | 13 WGET_URL="$WEB_SITE/archive/$TARBALL" |
psychomaniak@20035 | 14 |
pascal@24497 | 15 # What is the latest version available today? |
pascal@24497 | 16 current_version() |
pascal@24497 | 17 { |
pascal@24497 | 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \ |
pascal@24497 | 19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24497 | 20 } |
pascal@24497 | 21 |
psychomaniak@20035 | 22 DEPENDS="libusb" |
psychomaniak@20035 | 23 BUILD_DEPENDS="libusb-dev" |
psychomaniak@20035 | 24 |
psychomaniak@20035 | 25 # Rules to configure and make the package. |
psychomaniak@20035 | 26 compile_rules() |
psychomaniak@20035 | 27 { |
psychomaniak@20035 | 28 make |
psychomaniak@20035 | 29 make DESTDIR=$DESTDIR install |
psychomaniak@20035 | 30 } |
psychomaniak@20035 | 31 |
psychomaniak@20035 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@20035 | 33 genpkg_rules() |
psychomaniak@20035 | 34 { |
psychomaniak@20035 | 35 cp -a $install/* $fs |
psychomaniak@20035 | 36 } |