wok-6.x view mytop/receipt @ rev 25472
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 11 07:33:58 2022 +0000 (2022-10-11) |
parents | ad9008f821da |
children | 9600878fc758 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mytop"
4 VERSION="1.9.1"
5 CATEGORY="misc"
6 SHORT_DESC="Console-based MySQL monitoring tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://jeremy.zawodny.com/mysql/mytop/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://deb.debian.org/debian/pool/main/m/mytop/mytop_$VERSION.orig.tar.gz"
14 DEPENDS="perl-dbd-mysql perl-dbi perl-term-readkey"
15 BUILD_DEPENDS="$DEPENDS"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/mytop-[0-9]/!d;s|.*top-||;s|.t.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 perl Makefile.PL &&
28 make &&
29 make test &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }