wok-6.x annotate duc/receipt @ rev 24699

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 19:47:29 2022 +0000 (2022-03-13)
parents 5ea0ce1cecc0
children
rev   line source
pascal@21062 1 # SliTaz package receipt.
pascal@21062 2
pascal@21062 3 PACKAGE="duc"
pascal@21062 4 VERSION="1.4.4"
pascal@21062 5 CATEGORY="base-system"
pascal@21062 6 SHORT_DESC="Tools for inspecting and visualizing disk usage"
pascal@21062 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21063 8 LICENSE="LGPL3"
pascal@21062 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@22632 10 WEB_SITE="https://github.com/zevv/duc"
pascal@22632 11 WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL"
pascal@21062 12
pascal@21062 13 DEPENDS="ncursesw pango tokyocabinet"
pascal@21062 14 BUILD_DEPENDS="ncursesw-dev pango-dev tokyocabinet-dev"
pascal@21062 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24079 18 wget -O - ${WGET_URL%/rele*} 2>/dev/null | \
pascal@24079 19 sed '/releases.tag/!d;s|.*/tag.v*\(.*\)".*|\1|;q'
pascal@24055 20 }
pascal@24055 21
pascal@21062 22 # Rules to configure and make the package.
pascal@21062 23 compile_rules()
pascal@21062 24 {
pascal@21062 25 sed -i 's|ncursesw/ncurses.h|ncurses.h|' src/duc/cmd-ui.c
pascal@21062 26 ./configure --prefix=/usr \
pascal@21062 27 --mandir=/usr/share/man \
pascal@21062 28 $CONFIGURE_ARGS &&
pascal@21062 29 make &&
pascal@21062 30 make DESTDIR=$DESTDIR install
pascal@21062 31 }
pascal@21062 32
pascal@21062 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21062 34 genpkg_rules()
pascal@21062 35 {
pascal@21062 36 mkdir -p $fs/usr
pascal@21062 37 cp -a $install/usr/bin $fs/usr
pascal@21062 38 }