wok-current view gptfdisk/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (3 weeks ago) |
parents | 7740a0c081ce |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gptfdisk"
4 VERSION="1.0.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="GUID Partition Table (GPT) Partitioning tools."
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.rodsbooks.com/gdisk/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL"
14 DEPENDS="ncursesw popt util-linux-uuid"
15 BUILD_DEPENDS="ncursesw-dev popt-dev util-linux-uuid-dev"
17 HOST_ARCH="i486 x86_64"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/gptfdisk/files/gptfdisk/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/gptfdisk/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch --input=$stuff/patches/gptcurses.cc-1.0.8
31 patch --input=$stuff/patches/guid.cc-1.0.8
33 make
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin
40 mkdir -p $install/usr/share/man
41 # mkdir -p $fs/usr/share/doc
43 cp $src/*.8 $install/usr/share/man
44 # cp $src/README $fs/usr/share/doc
45 # cp $src/NEWS $fs/usr/share/doc
46 cp $src/cgdisk $fs/usr/bin
47 cp $src/gdisk $fs/usr/bin
48 cp $src/sgdisk $fs/usr/bin
49 cp $src/fixparts $fs/usr/bin
50 }