wok annotate flatpress/receipt @ rev 24923
mutt: addgroup mail only when not already existing
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 12 16:45:14 2022 +0100 (2022-04-12) |
parents | 640a2eba2511 |
children | 20ad21d5532c |
rev | line source |
---|---|
pascal@11547 | 1 # SliTaz package receipt. |
pascal@11547 | 2 |
pascal@11547 | 3 PACKAGE="flatpress" |
Hans-G?nter@24556 | 4 VERSION="1.2.1" |
pascal@11547 | 5 CATEGORY="network" |
pascal@11547 | 6 SHORT_DESC="Blog engine without SQL." |
pascal@11547 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15588 | 8 LICENSE="GPL2" |
Hans-G?nter@24556 | 9 WEB_SITE="https://flatpress.org" |
Hans-G?nter@24556 | 10 |
Hans-G?nter@24556 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
Hans-G?nter@24556 | 12 WGET_URL="https://github.com/flatpressblog/$PACKAGE/archive/$VERSION.zip" |
pascal@11547 | 13 |
pascal@11547 | 14 DEPENDS="php" |
pascal@11547 | 15 |
pascal@24385 | 16 # What is the latest version available today? |
pascal@24385 | 17 current_version() |
pascal@24385 | 18 { |
pascal@24385 | 19 wget -O - https://github.com/flatpressblog/flatpress/releases 2>/dev/null | \ |
pascal@24385 | 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24385 | 21 } |
pascal@24385 | 22 |
pascal@11547 | 23 # Rules to configure and make the package. |
pascal@11547 | 24 compile_rules() |
pascal@11547 | 25 { |
pascal@11547 | 26 mkdir -p $DESTDIR/var/www/$PACKAGE |
Hans-G?nter@24556 | 27 cp -a $src/* $DESTDIR/var/www/$PACKAGE |
Hans-G?nter@24556 | 28 chown -R 80.80 $DESTDIR/var/www/$PACKAGE |
pascal@11547 | 29 } |
pascal@11547 | 30 |
pascal@11547 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11547 | 32 genpkg_rules() |
pascal@11547 | 33 { |
Hans-G?nter@24556 | 34 cp -a $install/* $fs |
pascal@11547 | 35 } |