wok-current view vbindiff/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 | dffc0bc4d50c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="vbindiff"
4 VERSION="3.0_beta5"
5 CATEGORY="utilities"
6 TAGS="compare"
7 SHORT_DESC="Visual binary diff."
8 MAINTAINER="maintainer@slitaz.org"
9 LICENSE="GPLv2+"
10 WEB_SITE="https://www.cjmweb.net/vbindiff/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/mrdudz/vbindiff/releases/download/$VERSION/$TARBALL"
15 DEPENDS="libpanel ncursesw"
16 BUILD_DEPENDS="libpanel ncursesw-dev"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 }