wok annotate shaarli/receipt @ rev 25520

created recipes for libluv and libluv-dev 1.44.2.1
author Hans-G?nter Theisgen
date Fri Feb 24 15:44:32 2023 +0100 (20 months ago)
parents 5ea0ce1cecc0
children 0262035dc1e7
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@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pascal@11566 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11566 26 genpkg_rules()
pascal@11566 27 {
Hans-G?nter@21901 28 mkdir -p $fs/var/www/$PACKAGE
Hans-G?nter@21903 29 cp -a $src/* $fs/var/www/$PACKAGE
Hans-G?nter@25302 30 sed -i "s|mt_rand())|mt_rand().'$WGET_URL$$')|" \
Hans-G?nter@25302 31 $fs/var/www/$PACKAGE/index.php
pascal@11566 32 }
pascal@11566 33
pascal@11566 34 post_install()
pascal@11566 35 {
Hans-G?nter@25302 36 chown -R www "$1/var/www/$PACKAGE"
pascal@11566 37 }