wok-6.x annotate mytop/receipt @ rev 24555
updated flashrom (1.1 -> 1.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 13:37:18 2022 +0100 (2022-02-25) |
parents | f255cb8d6d9a |
children | ad9008f821da |
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@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed 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 } |