wok view dvtm/receipt @ rev 24425
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 17:50:36 2022 +0000 (2022-02-11) |
parents | c914135fdee1 |
children | 0bfe034e9d09 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dvtm"
4 VERSION="0.15"
5 CATEGORY="system-tools"
6 SHORT_DESC="A tiling window management for the console"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://www.brain-dump.org/projects/dvtm"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 DEPENDS="ncursesw"
15 BUILD_DEPENDS="ncursesw-dev ncursesw-extra"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed '/dvtm-/!d;/tar/!d;s|.*/dvtm-\(.*\).tar.*|\1|' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|/usr/local|/usr|' config.mk
29 make -j 1 &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr/bin $fs
37 }