wok-next view mercurial/receipt @ rev 5982
nut: fix genpkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 13 21:34:30 2010 +0200 (2010-08-13) |
parents | bddca9cd4c25 |
children | 4d15994ef7bd |
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="1.5.2"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="python patch openssl"
9 BUILD_DEPENDS="python-dev patch openssl-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://mercurial.selenic.com/"
12 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
13 CONFIG_FILES="/etc/mercurial/hgweb.config"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 make install PREFIX=$PWD/_pkg/usr
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/examples/mercurial
26 cp -a $_pkg/usr/bin $fs/usr
27 cp -a $_pkg/usr/lib $fs/usr
29 # Examples
30 cp -a $src/hgweb.cgi $fs/usr/share/examples/mercurial
31 cp -a stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
32 cp -a stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
34 # Config file for hgweb
35 mkdir -p $fs/etc/mercurial
36 cp -a stuff/hgweb.config $fs/etc/mercurial
38 chown -R root.root $fs
39 }