wok annotate picoblog/receipt @ rev 25506
memtest, pack: cleanup
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 09 16:28:01 2023 +0000 (18 months ago) |
parents | 65ff25c4de90 |
children |
rev | line source |
---|---|
pascal@11561 | 1 # SliTaz package receipt. |
pascal@11561 | 2 |
pascal@11561 | 3 PACKAGE="picoblog" |
pascal@11561 | 4 VERSION="1.0" |
pascal@11561 | 5 CATEGORY="network" |
pascal@11561 | 6 SHORT_DESC="Tiny blog engine." |
pascal@11561 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15604 | 8 LICENSE="MIT" |
pascal@16240 | 9 TARBALL="$PACKAGE-$VERSION" |
pascal@25504 | 10 WEB_SITE="https://web.archive.org/web/20200128165016/https://dev.kd2.org/picoblog/" |
pascal@25465 | 11 WGET_URL="https://svn.kd2.org/svn/misc/apps/picoblog/index.php" |
pascal@16264 | 12 HOST_ARCH="any" |
pascal@16264 | 13 TAGS="blog" |
pascal@11561 | 14 |
pascal@11561 | 15 DEPENDS="php" |
pascal@11561 | 16 |
pascal@24713 | 17 # What is the latest version available today? |
pascal@24713 | 18 current_version() |
pascal@24713 | 19 { |
pascal@24713 | 20 wget -O - $WGET_URL 2> /dev/null | \ |
pascal@24713 | 21 sed '/const VERSION/!d;s|.*= [^0-9]||;s|[^0-9\.].*||' |
pascal@24713 | 22 } |
pascal@24713 | 23 |
pascal@11561 | 24 # Rules to configure and make the package. |
pascal@11561 | 25 compile_rules() |
pascal@11561 | 26 { |
pascal@11561 | 27 mkdir -p $DESTDIR/var/www/$PACKAGE 2> /dev/null |
pascal@14337 | 28 cp "$SOURCES_REPOSITORY/$TARBALL" $DESTDIR/var/www/$PACKAGE/index.php |
pascal@11561 | 29 chown -R 80.80 $DESTDIR/var/www/$PACKAGE |
pascal@11561 | 30 } |
pascal@11561 | 31 |
pascal@11561 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11561 | 33 genpkg_rules() |
pascal@11561 | 34 { |
pascal@14337 | 35 cp -a $install/* $fs |
pascal@11561 | 36 } |