wok annotate gptfdisk/receipt @ rev 24403
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 18:20:23 2022 +0000 (2022-02-08) |
parents | c5a485822efe |
children | c8ffc905b350 |
rev | line source |
---|---|
mojo@20052 | 1 # SliTaz package receipt. |
mojo@20052 | 2 |
mojo@20052 | 3 PACKAGE="gptfdisk" |
Hans-G?nter@22878 | 4 VERSION="1.0.5" |
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@22878 | 14 DEPENDS="gcc-lib-base 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@22878 | 28 sed -i 's|#include <ncursesw/ncurses.h>|#include <ncurses.h>|' \ |
Hans-G?nter@22878 | 29 gptcurses.cc |
Hans-G?nter@22878 | 30 |
pascal@20053 | 31 make |
mojo@20052 | 32 } |
mojo@20052 | 33 |
mojo@20052 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
mojo@20052 | 35 genpkg_rules() |
mojo@20052 | 36 { |
Hans-G?nter@22878 | 37 mkdir -p $fs/usr/bin |
Hans-G?nter@22878 | 38 mkdir -p $fs/usr/share/man |
Hans-G?nter@22878 | 39 mkdir -p $fs/usr/share/doc |
Hans-G?nter@22878 | 40 |
Hans-G?nter@22878 | 41 cp $src/*.8 $fs/usr/share/man |
Hans-G?nter@20994 | 42 cp $src/README $fs/usr/share/doc |
Hans-G?nter@20994 | 43 cp $src/NEWS $fs/usr/share/doc |
Hans-G?nter@20994 | 44 cp $src/cgdisk $fs/usr/bin |
Hans-G?nter@20994 | 45 cp $src/gdisk $fs/usr/bin |
Hans-G?nter@20994 | 46 cp $src/sgdisk $fs/usr/bin |
Hans-G?nter@20994 | 47 cp $src/fixparts $fs/usr/bin |
mojo@20052 | 48 } |