wok-current view mytop/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | 6e5c8ce7fb15 |
children |
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="https://web.archive.org/web/20150602163826if_/http://www.mysqlfanboy.com/mytop-3/$TARBALL"
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 }