wok annotate mtop/receipt @ rev 25073

Up dropbear (2022.82)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 11 11:22:52 2022 +0000 (2022-06-11)
parents 7896f0694ef6
children 7dd01dedad38
rev   line source
pascal@1744 1 # SliTaz package receipt.
pascal@1744 2
pascal@1744 3 PACKAGE="mtop"
pascal@1744 4 VERSION="0.6.6"
pascal@1744 5 CATEGORY="system-tools"
pascal@1744 6 SHORT_DESC="Monitors a MySQL server."
pascal@1744 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@1744 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1744 10 WEB_SITE="http://mtop.sourceforge.net/"
pascal@1744 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15002 12
pascal@1744 13 DEPENDS="perl-curses perl-dbd-mysql"
pascal@1744 14 BUILD_DEPENDS="perl-curses perl-dbd-mysql"
pascal@1744 15
pascal@24402 16 # What is the latest version available today?
pascal@24402 17 current_version()
pascal@24402 18 {
pascal@24402 19 wget -O - https://sourceforge.net/projects/mtop/files/mtop/ 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 21 sed '/scope="row/!d;s|.*/mtop/v||;s|/.*||;q'
pascal@24402 22 }
pascal@24402 23
pascal@1744 24 # Rules to configure and make the package.
pascal@1744 25 compile_rules()
pascal@1744 26 {
pascal@1748 27 perl Makefile.PL --prefix=/usr &&
pascal@1744 28 make &&
samuel_trassare@14163 29 make DESTDIR=$DESTDIR install
pascal@1744 30 }
pascal@1744 31
pascal@1744 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1744 33 genpkg_rules()
pascal@1744 34 {
samuel_trassare@14163 35 cp -a $install/usr $fs
pascal@1744 36 }
pascal@1744 37