wok-current annotate gptfdisk/receipt @ rev 25654

gptfdisk needed
author Hans-G?nter Theisgen
date Tue Feb 13 07:30:07 2024 +0100 (10 months ago)
parents c8ffc905b350
children 5926178cd6fa
rev   line source
mojo@20052 1 # SliTaz package receipt.
mojo@20052 2
mojo@20052 3 PACKAGE="gptfdisk"
Hans-G?nter@24619 4 VERSION="1.0.8"
mojo@20052 5 CATEGORY="system-tools"
Hans-G?nter@20994 6 SHORT_DESC="GUID Partition Table (GPT) Partitioning tools."
mojo@20052 7 MAINTAINER="mojo@slitaz.org"
mojo@20052 8 LICENSE="GPL2"
Hans-G?nter@20994 9 WEB_SITE="https://www.rodsbooks.com/gdisk/"
Hans-G?nter@20994 10
mojo@20052 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20994 12 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
mojo@20052 13
Hans-G?nter@25654 14 DEPENDS="ncursesw popt util-linux-uuid"
Hans-G?nter@22878 15 BUILD_DEPENDS="ncursesw-dev popt-dev util-linux-uuid-dev"
mojo@20052 16
pascal@24403 17 # What is the latest version available today?
pascal@24403 18 current_version()
pascal@24403 19 {
pascal@24403 20 wget -O - https://sourceforge.net/projects/gptfdisk/files/gptfdisk/ 2>/dev/null | \
pascal@24403 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 22 sed '/scope="row/!d;s|.*/gptfdisk/||;s|/.*||;q'
pascal@24403 23 }
pascal@24403 24
mojo@20052 25 # Rules to configure and make the package.
mojo@20052 26 compile_rules()
mojo@20052 27 {
Hans-G?nter@24619 28 patch --input=$stuff/patches/gptcurses.cc-1.0.8
Hans-G?nter@22878 29
pascal@20053 30 make
mojo@20052 31 }
mojo@20052 32
mojo@20052 33 # Rules to gen a SliTaz package suitable for Tazpkg.
mojo@20052 34 genpkg_rules()
mojo@20052 35 {
Hans-G?nter@22878 36 mkdir -p $fs/usr/bin
Hans-G?nter@24619 37 mkdir -p $install/usr/share/man
Hans-G?nter@24619 38 # mkdir -p $fs/usr/share/doc
Hans-G?nter@22878 39
Hans-G?nter@24619 40 cp $src/*.8 $install/usr/share/man
Hans-G?nter@24619 41 # cp $src/README $fs/usr/share/doc
Hans-G?nter@24619 42 # cp $src/NEWS $fs/usr/share/doc
Hans-G?nter@20994 43 cp $src/cgdisk $fs/usr/bin
Hans-G?nter@20994 44 cp $src/gdisk $fs/usr/bin
Hans-G?nter@20994 45 cp $src/sgdisk $fs/usr/bin
Hans-G?nter@20994 46 cp $src/fixparts $fs/usr/bin
mojo@20052 47 }