wok annotate shake/receipt @ rev 25442
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 02 16:30:36 2022 +0000 (2022-09-02) |
parents | 5ea0ce1cecc0 |
children | 73f36875e5a7 |
rev | line source |
---|---|
pascal@13303 | 1 # SliTaz package receipt. |
pascal@13303 | 2 |
pascal@13303 | 3 PACKAGE="shake" |
Hans-G?nter@21905 | 4 VERSION="1.0" |
pascal@13303 | 5 CATEGORY="misc" |
pascal@13303 | 6 SHORT_DESC="A defragmentation tool." |
pascal@13303 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@13303 | 9 WEB_SITE="http://vleu.net/shake/" |
Hans-G?nter@21905 | 10 |
Hans-G?nter@21905 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21905 | 12 WGET_URL="https://github.com/unbrice/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@21905 | 13 |
pascal@13303 | 14 SUGGESTED="defrag" |
pascal@13303 | 15 DEPENDS="attr" |
Hans-G?nter@21905 | 16 BUILD_DEPENDS="attr attr-dev cmake help2man" |
pascal@13303 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@13303 | 24 # Rules to configure and make the package. |
pascal@13303 | 25 compile_rules() |
pascal@13303 | 26 { |
pascal@13303 | 27 cd $src/build |
pascal@13303 | 28 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@13303 | 29 make && |
pascal@13303 | 30 make DESTDIR=$DESTDIR install |
pascal@13303 | 31 } |
pascal@13303 | 32 |
pascal@13303 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13303 | 34 genpkg_rules() |
pascal@13303 | 35 { |
pascal@13303 | 36 mkdir -p $fs/usr/bin |
pascal@13303 | 37 cp -a $install/usr/bin/* $fs/usr/bin |
pascal@13303 | 38 } |