wok annotate gpart/receipt @ rev 25803
Up libgit2 (1.8.4), libsde-utils (0.1.0-r1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 12 15:28:00 2024 +0000 (3 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@23872 | 1 # SliTaz package receipt. |
pascal@23872 | 2 |
pascal@23872 | 3 PACKAGE="gpart" |
pascal@23872 | 4 VERSION="0.3" |
pascal@23872 | 5 CATEGORY="system-tools" |
pascal@23872 | 6 SHORT_DESC="A partition recovery tool" |
pascal@23872 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23872 | 8 LICENSE="GPL2" |
pascal@23872 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23872 | 10 WEB_SITE="https://github.com/baruch/gpart" |
pascal@23872 | 11 WGET_URL="$WEB_SITE/archive/$VERSION/$TARBALL" |
pascal@23872 | 12 |
pascal@23872 | 13 BUILD_DEPENDS="automake" |
pascal@23872 | 14 |
pascal@25599 | 15 # What is the latest version available today? |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25599 | 19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@23872 | 22 # Rules to configure and make the package. |
pascal@23872 | 23 compile_rules() |
pascal@23872 | 24 { |
pascal@23872 | 25 ./autogen.sh |
pascal@23872 | 26 ./configure --prefix=/usr \ |
pascal@23872 | 27 --mandir=/usr/share/man \ |
pascal@23872 | 28 $CONFIGURE_ARGS && |
pascal@23872 | 29 make && |
pascal@23872 | 30 make DESTDIR=$DESTDIR install |
pascal@23872 | 31 } |
pascal@23872 | 32 |
pascal@23872 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23872 | 34 genpkg_rules() |
pascal@23872 | 35 { |
pascal@23872 | 36 mkdir -p $fs/usr |
pascal@23872 | 37 cp -a $install/usr/sbin $fs/usr |
pascal@23872 | 38 } |