# SliTaz package receipt. PACKAGE="mercurial" VERSION="4.7" CATEGORY="development" SHORT_DESC="Revision tools system." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://mercurial.selenic.com/" WGET_URL="http://www.selenic.com/mercurial/release/$TARBALL" CONFIG_FILES="/etc/mercurial/hgweb.config" DEPENDS="python patch libssl" BUILD_DEPENDS="python-dev patch openssl-dev" # Rules to configure and make the package. compile_rules() { cd $src python setup.py install --root="$DESTDIR" --optimize=1 mkdir -p $DESTDIR/usr/share/examples/mercurial cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/examples/mercurial cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/lib $fs/usr # Examples cp -a $stuff/hgwebdir.cgi $fs/usr/share/examples/mercurial cp -a $stuff/lighttpd-hg-vhost.conf $fs/usr/share/examples/mercurial # Config file for hgweb mkdir -p $fs/etc/mercurial cp -a $stuff/hgweb.config $fs/etc/mercurial chown -R root.root $fs }