wok-6.x annotate shaarli/receipt @ rev 25427

updated xapian and xapian-dev (1.4.15 -> 1.4.20)
author Hans-G?nter Theisgen
date Thu Aug 18 17:00:01 2022 +0100 (2022-08-18)
parents 5ea0ce1cecc0
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@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 }