SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gptfdisk"

# SliTaz package receipt.

PACKAGE="gptfdisk"
VERSION="1.0.8"
CATEGORY="system-tools"
SHORT_DESC="GUID Partition Table (GPT) Partitioning tools."
MAINTAINER="mojo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.rodsbooks.com/gdisk/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="ncursesw popt util-linux-uuid"
BUILD_DEPENDS="ncursesw-dev popt-dev util-linux-uuid-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    patch --input=$stuff/patches/gptcurses.cc-1.0.8

    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    mkdir -p $install/usr/share/man
#    mkdir -p $fs/usr/share/doc

    cp $src/*.8        $install/usr/share/man
#    cp $src/README        $fs/usr/share/doc
#    cp $src/NEWS        $fs/usr/share/doc
    cp $src/cgdisk        $fs/usr/bin
    cp $src/gdisk        $fs/usr/bin
    cp $src/sgdisk        $fs/usr/bin
    cp $src/fixparts    $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)