# SliTaz package receipt PACKAGE="debootstrap" VERSION="1.0.123" CATEGORY="misc" SHORT_DESC="Bootstrap a basic Debian system." MAINTAINER="shann@slitaz.org" LICENSE="MIT" WEB_SITE="https://wiki.debian.org/Debootstrap" #TARBALL="$PACKAGE-$VERSION.tar.gz" #WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL" TARBALL="${PACKAGE}_$VERSION.tar.gz" WGET_URL="https://github.com/felixonmars/debootstrap/archive/refs/tags/$VERSION.tar.gz" DEPENDS="dpkg tar" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { make DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin mkdir -p $fs/usr/share/debootstrap mkdir -p $fs/usr/share/doc cp -a $src/debootstrap $fs/usr/sbin cp -a $src/functions $fs/usr/share/debootstrap cp -a $src/scripts $fs/usr/share/debootstrap cp -a $src/debian/changelog $fs/usr/share/doc cp -a $src/debian/copyright $fs/usr/share/doc cp -a $src/README $fs/usr/share/doc chown -R root.root $fs }