wok-current view shaarli/receipt @ rev 17736
prelink: force libpthread link
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 12:45:18 2015 +0100 (2015-03-06) |
parents | 340c325fd2e9 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="shaarli"
4 GITHASH="48b68c8fa5aa9ca98f3a9aaf9277656fe0cafb01"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="network"
7 SHORT_DESC="A minimalist delicious clone."
8 WEB_SITE="http://sebsauvage.net/wiki/doku.php?id=php:shaarli"
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="zlib/libpng"
11 TARBALL="${PACKAGE}_$VERSION.zip"
12 WGET_URL="https://github.com/sebsauvage/Shaarli/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
22 cp -a $src $fs/var/www/$PACKAGE
23 sed -i "s|mt_rand())|mt_rand().'$WGET_URL$$')|" $fs/var/www/$PACKAGE/index.php
24 }
26 post_install()
27 {
28 chown -R www $1/var/www/$PACKAGE
29 }