wok-current view stm8flash/receipt @ rev 24497

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