wok-next view shaarlo/receipt @ rev 19709
Up at-spi2-atk, libpcap, nettle, readline, tiff, xcb-util* and 220 Perl packages (there are still about 20 left)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 11 02:23:02 2017 +0300 (2017-05-11) |
parents | 92b71f7ab2a0 |
children | c4e53a39395a |
line source
1 # SliTaz package receipt.
3 PACKAGE="shaarlo"
4 GITHASH="ac6ef877ce1cbd33e85b3d041715d765a26497b7"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="network"
7 SHORT_DESC="Unified Shaarlis Rss."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="zlib/libpng"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WEB_SITE="https://github.com/DMeloni/shaarlo"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
13 HOST_ARCH="any"
15 DEPENDS="php"
16 BUILD_DEPENDS="wget"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/var/www $fs/etc
22 cp -a $src $fs/var/www/$PACKAGE
23 mv $fs/var/www/$PACKAGE/config.php $fs/etc/shaarlo.php
24 ln -s /etc/shaarlo.php $fs/var/www/$PACKAGE/config.php
25 mkdir $fs/var/www/$PACKAGE/data
26 chmod +w $fs/var/www/$PACKAGE/data
27 }
29 post_install()
30 {
31 chown -R www "$1/var/www/$PACKAGE"
32 cat <<EOT
33 Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
34 EOT
35 }