wok view mercurial/receipt @ rev 16328

mercurial: fix receipt (Thanks Alexandr) and ARM up slitaz-configs
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 10 19:44:57 2014 +0200 (2014-04-10)
parents e3c24dc3326c
children 87646c0eaba7
line source
1 # SliTaz package receipt.
3 PACKAGE="mercurial"
4 VERSION="2.9.2"
5 CATEGORY="development"
6 SHORT_DESC="Revision tools system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mercurial.selenic.com/"
11 WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL"
12 CONFIG_FILES="/etc/mercurial/hgweb.config"
13 HOST_ARCH="i486 arm"
15 DEPENDS="python patch libssl"
16 BUILD_DEPENDS="python-dev patch openssl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 python setup.py install --root="$DESTDIR" --optimize=1
22 mkdir -p $DESTDIR/usr/share/examples/mercurial
23 cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/examples/mercurial
30 cp -a $install/usr/bin $fs/usr
31 cp -a $install/usr/lib $fs/usr
33 # Examples
34 cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial
35 cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial
37 # Config file for hgweb
38 mkdir -p $fs/etc/mercurial
39 cp -a $stuff/hgweb.config $fs/etc/mercurial
41 chown -R root.root $fs
42 }