wok view gptfdisk/receipt @ rev 24556

updated flatpress (0.1010.2 -> 1.2.1)
author Hans-G?nter Theisgen
date Fri Feb 25 14:05:00 2022 +0100 (2022-02-25)
parents c5a485822efe
children c8ffc905b350
line source
1 # SliTaz package receipt.
3 PACKAGE="gptfdisk"
4 VERSION="1.0.5"
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="gcc-lib-base ncursesw popt util-linux-uuid"
15 BUILD_DEPENDS="ncursesw-dev popt-dev util-linux-uuid-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/gptfdisk/files/gptfdisk/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/gptfdisk/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|#include <ncursesw/ncurses.h>|#include <ncurses.h>|' \
29 gptcurses.cc
31 make
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 mkdir -p $fs/usr/share/man
39 mkdir -p $fs/usr/share/doc
41 cp $src/*.8 $fs/usr/share/man
42 cp $src/README $fs/usr/share/doc
43 cp $src/NEWS $fs/usr/share/doc
44 cp $src/cgdisk $fs/usr/bin
45 cp $src/gdisk $fs/usr/bin
46 cp $src/sgdisk $fs/usr/bin
47 cp $src/fixparts $fs/usr/bin
48 }