
Receipt for package "mercurial-python3"
# SliTaz package receipt. PACKAGE="mercurial-python3" SOURCE="mercurial" VERSION="6.1.1" CATEGORY="development" SHORT_DESC="Revision tools system." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://www.mercurial-scm.org/" TARBALL="$SOURCE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}release/$TARBALL" PROVIDE="hg" SUGGESTED="cacerts" DEPENDS="libssl patch python3" BUILD_DEPENDS="openssl-dev patch python3-dev" CONFIG_FILES="/etc/mercurial/hgweb.config" HOST_ARCH="i486 arm x86_64" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # Cross compilation hack to avoid using compiler which build python # itself. case "$ARCH" in arm*) mv /usr/bin/i486-slitaz-linux-gcc /tmp && ln -s /cross/${ARCH}/tools/bin/${HOST_SYSTEM}-gcc \ /usr/bin/i486-slitaz-linux-gcc ;; esac && python3 setup.py install \ --root="$DESTDIR" \ --optimize=1 && mkdir -p $DESTDIR/usr/share/examples/mercurial && cp -a $src/hgweb.cgi $DESTDIR/usr/share/examples/mercurial && case "$ARCH" in arm*) rm /usr/bin/i486-slitaz-linux-gcc && mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; esac } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $install/usr/bin/hg $fs/usr/bin/hg-python3 cp -a $install/usr/lib $fs/usr cook_config_dotnew chown -R root.root $fs } post_install() { config_dotnew "$CONFIG_FILES" }
6107 packages and 261132 files in current database (Mon Jul 7 00:01:25 2025)