wok view shaarli/receipt @ rev 25770

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