wok annotate mytop/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (2022-05-20)
parents 241fb98cab1c
children 6e5c8ce7fb15
rev   line source
pascal@19843 1 # SliTaz package receipt.
pascal@19843 2
pascal@19843 3 PACKAGE="mytop"
Hans-G?nter@23209 4 VERSION="1.9.1"
pascal@19843 5 CATEGORY="misc"
Hans-G?nter@23209 6 SHORT_DESC="Console-based MySQL monitoring tool."
pascal@19843 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19843 8 LICENSE="GPL2"
Hans-G?nter@23209 9 WEB_SITE="http://jeremy.zawodny.com/mysql/mytop/"
Hans-G?nter@23209 10
pascal@19843 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23209 12 WGET_URL="http://www.mysqlfanboy.com/mytop-3/$TARBALL"
pascal@19843 13
pascal@19843 14 DEPENDS="perl-dbd-mysql perl-dbi perl-term-readkey"
pascal@19843 15 BUILD_DEPENDS="$DEPENDS"
pascal@19843 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24453 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24626 21 sed '/mytop-[0-9]/!d;s|.*top-||;s|.t.*||;q'
pascal@24453 22 }
pascal@24453 23
pascal@19843 24 # Rules to configure and make the package.
pascal@19843 25 compile_rules()
pascal@19843 26 {
Hans-G?nter@23209 27 perl Makefile.PL &&
pascal@19843 28 make &&
pascal@19843 29 make test &&
pascal@19843 30 make DESTDIR=$DESTDIR install
pascal@19843 31 }
pascal@19843 32
pascal@19843 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19843 34 genpkg_rules()
pascal@19843 35 {
Hans-G?nter@23209 36 cp -a $install/usr $fs
pascal@19843 37 }