SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "partclone"

# SliTaz package receipt.

PACKAGE="partclone"
VERSION="0.3.32"
CATEGORY="system-tools"
SHORT_DESC="Utilities to smartly backup partitions."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://partclone.org/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/Thomas-Tsai/partclone/archive/refs/tags/$VERSION.tar.gz"
TAGS="backup"

DEPENDS="ncursesw ntfs-3g e2fsprogs"
BUILD_DEPENDS="util-linux-blkid-dev util-linux-uuid-dev libxslt e2fsprogs-dev \
ncursesw-dev ntfsprogs-dev ntfs-3g-dev docbook-xsl automake libtool openssl-dev"

HOST_ARCH="i486 x86_64"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/partclone/files/source/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*/partclone-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{

    # Workaround to build thanks aleksej
    # see https://forum.slitaz.org/topic/parclone-needs-to-be-rebuilded
    export RPM_ARCH=$ARCH
    sed -i 's|exit 1|exit 0|' fail-mbr/compile-mbr.sh

    ./autogen &&
    ./configure LDFLAGS="$LDFLAGS -lcom_err" $CONFIGURE_ARGS \
        --enable-extfs \
        --enable-fat \
        --enable-exfat \
        --enable-ntfs \
        --enable-btrfs \
        --enable-hfsp \
        --enable-ncursesw &&
        make && make install 2>&1 | sed "s/8': No such/8': no such/"
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/local
    cp -a $install/usr/sbin* $fs/usr
}
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)