wok view vacation/receipt @ rev 24545

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 24 19:32:16 2022 +0000 (2022-02-24)
parents c8133a4dc124
children 3e62030539e2
line source
1 # SliTaz package receipt.
3 PACKAGE="vacation"
4 VERSION="3.3.0"
5 CATEGORY="network"
6 TAGS="email"
7 SHORT_DESC="Automatic mail-answering program."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.linux.it/~md/software/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}${PACKAGE}_$VERSION.tar.gz"
15 DEPENDS="gdbm"
16 BUILD_DEPENDS="db-dev gdbm-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed "/$PACKAGE/!d;s|.*${PACKAGE}_||;s|.tar.*||"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/uname -m/echo i386/' Makefile
29 make
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/bin
36 cp $src/vacation $fs/usr/bin
37 }