wok annotate shaarli/receipt @ rev 25735

Remove iptraf: replaced by iptraf-ng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 23 09:39:49 2024 +0000 (2 months ago)
parents 5d3da6d7eabc
children
rev   line source
pascal@11566 1 # SliTaz package receipt.
pascal@11566 2
pascal@11566 3 PACKAGE="shaarli"
Hans-G?nter@25302 4 VERSION="0.12.1"
pascal@11566 5 CATEGORY="network"
pascal@11566 6 SHORT_DESC="A minimalist delicious clone."
pascal@11566 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15021 8 LICENSE="zlib/libpng"
Hans-G?nter@21901 9 WEB_SITE="https://sebsauvage.net/wiki/doku.php?id=php:shaarli"
Hans-G?nter@21901 10
pascal@21254 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21254 12 WGET_URL="https://github.com/shaarli/Shaarli/archive/v$VERSION.tar.gz"
pascal@11566 13
pascal@11566 14 DEPENDS="php"
Hans-G?nter@21903 15 BUILD_DEPENDS=""
Hans-G?nter@21901 16
Hans-G?nter@21901 17 HOST_ARCH="any"
pascal@11566 18
pascal@25601 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25601 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
pascal@11566 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11566 27 genpkg_rules()
pascal@11566 28 {
Hans-G?nter@21901 29 mkdir -p $fs/var/www/$PACKAGE
Hans-G?nter@21903 30 cp -a $src/* $fs/var/www/$PACKAGE
Hans-G?nter@25302 31 sed -i "s|mt_rand())|mt_rand().'$WGET_URL$$')|" \
Hans-G?nter@25302 32 $fs/var/www/$PACKAGE/index.php
pascal@11566 33 }
pascal@11566 34
pascal@11566 35 post_install()
pascal@11566 36 {
Hans-G?nter@25302 37 chown -R www "$1/var/www/$PACKAGE"
pascal@11566 38 }