wok view edid-decode/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 151ac8f3d1bd |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="edid-decode"
4 VERSION="fork-point-4"
5 CATEGORY="misc"
6 SHORT_DESC="Decode EDID data in human-readable format"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/rpavlik/edid-decode"
11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
13 current_version()
14 {
15 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
16 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
17 }
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $install/usr/bin $fs/usr
31 }