wok annotate shaarlo/receipt @ rev 24475

updated dfu-util (0.9 -> 0.11)
author Hans-G?nter Theisgen
date Thu Feb 17 17:41:58 2022 +0100 (2022-02-17)
parents 5ea0ce1cecc0
children
rev   line source
pascal@16540 1 # SliTaz package receipt.
pascal@16540 2
pascal@16540 3 PACKAGE="shaarlo"
Hans-G?nter@21904 4 #GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
Hans-G?nter@21904 5 #VERSION=${GITHASH:0:7}
Hans-G?nter@21904 6 VERSION="0.3.1"
pascal@16540 7 CATEGORY="network"
pascal@16540 8 SHORT_DESC="Unified Shaarlis Rss."
pascal@16540 9 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16540 10 LICENSE="zlib/libpng"
pascal@16540 11 WEB_SITE="https://github.com/DMeloni/shaarlo"
Hans-G?nter@21904 12
Hans-G?nter@21904 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21904 14 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@16540 15
pascal@16540 16 DEPENDS="php"
Hans-G?nter@21904 17 BUILD_DEPENDS=""
Hans-G?nter@21904 18
Hans-G?nter@21904 19 HOST_ARCH="any"
pascal@16540 20
pascal@24055 21 current_version()
pascal@24055 22 {
pascal@24299 23 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 25 }
pascal@24055 26
pascal@16540 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16540 28 genpkg_rules()
pascal@16540 29 {
Hans-G?nter@21904 30 mkdir -p $fs/var/www
Hans-G?nter@21904 31 mkdir -p $fs/etc
Hans-G?nter@21904 32
pascal@16540 33 cp -a $src $fs/var/www/$PACKAGE
Hans-G?nter@21904 34
Hans-G?nter@21904 35 mv $fs/var/www/$PACKAGE/config.php.sample $fs/etc/shaarlo.php
pascal@16544 36 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
pascal@16540 37 mkdir $fs/var/www/$PACKAGE/data
pascal@16540 38 chmod +w $fs/var/www/$PACKAGE/data
pascal@16540 39 }
pascal@16540 40
pascal@16540 41 post_install()
pascal@16540 42 {
pascal@18730 43 chown -R www "$1/var/www/$PACKAGE"
pascal@16540 44 cat <<EOT
pascal@16540 45 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
pascal@16540 46 EOT
pascal@16540 47 }