wok annotate monkey/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents c6796c6304f6
children 01ed9626bb94
rev   line source
necrophcodr@17848 1 # SliTaz package receipt.
necrophcodr@17848 2
necrophcodr@17848 3 PACKAGE="monkey"
necrophcodr@17848 4 VERSION="1.5.6"
necrophcodr@17848 5 CATEGORY="network"
necrophcodr@17848 6 SHORT_DESC="Lightweight HTTP server"
necrophcodr@17848 7 MAINTAINER="necrophcodr@necrophcodr.me"
necrophcodr@17848 8 LICENSE="APL2"
necrophcodr@17848 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24465 10 WEB_SITE="http://monkey-project.com/"
pascal@17869 11 WGET_URL="$WEB_SITE/releases/${VERSION%.*}/$TARBALL"
necrophcodr@17848 12
necrophcodr@17848 13 DEPENDS=""
necrophcodr@17848 14 BUILD_DEPENDS="findutils"
necrophcodr@17848 15
pascal@24465 16 # What is the latest version available today?
pascal@24465 17 current_version()
pascal@24465 18 {
pascal@24465 19 wget -O - http://monkey-project.com/downloads/ 2>/dev/null | \
pascal@24465 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 21 }
pascal@24465 22
necrophcodr@17848 23 # Rules to configure and make the package.
necrophcodr@17848 24 compile_rules()
necrophcodr@17848 25 {
necrophcodr@17848 26 ./configure --enable-shared --prefix=/usr --datadir=/var/www \
necrophcodr@17848 27 --pidfile=/var/run/monkey.pid --sysconfdir=/etc/monkey \
necrophcodr@17848 28 --disable-plugins=mbedtls --mandir=/usr/share/man \
necrophcodr@17848 29 --plugdir=/usr/share/monkey/plugins &&
necrophcodr@17848 30 make &&
necrophcodr@17848 31 make DESTDIR=$install install
necrophcodr@17848 32 }
necrophcodr@17848 33
necrophcodr@17848 34 # Rules to gen a SliTaz package suitable for Tazpkg.
necrophcodr@17848 35 genpkg_rules()
necrophcodr@17848 36 {
necrophcodr@17848 37 mkdir -p $fs/usr
necrophcodr@17848 38 cp -a $install/usr/bin $fs/usr/
necrophcodr@17848 39 cp -a $install/usr/share $fs/usr/
necrophcodr@17848 40 cp -a $install/etc $fs/
necrophcodr@17848 41 cp -a $install/var $fs/
necrophcodr@17848 42 mkdir -p $fs/usr/share/monkey/samples
necrophcodr@17848 43 mv $fs/var/www/ $fs/usr/share/monkey/samples/htdocs
necrophcodr@17848 44 }