wok-current annotate fzy/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 085da06d2c37 |
children | 82d54eca72be |
rev | line source |
---|---|
paul@19150 | 1 # SliTaz package receipt. |
paul@19150 | 2 |
paul@19150 | 3 PACKAGE="fzy" |
Hans-G?nter@20945 | 4 VERSION="1.0" |
paul@19150 | 5 CATEGORY="utilities" |
paul@19150 | 6 SHORT_DESC="A fast, simple fuzzy finder." |
paul@19150 | 7 MAINTAINER="paul@slitaz.org" |
paul@19150 | 8 WEB_SITE="https://github.com/jhawthorn/fzy" |
Hans-G?nter@20945 | 9 |
Hans-G?nter@20945 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20945 | 11 WGET_URL="https://github.com/jhawthorn/$PACKAGE/release/download/$VERSION/$TARBALL" |
paul@19150 | 12 |
paul@19150 | 13 DEPENDS="" |
Hans-G?nter@20945 | 14 BUILD_DEPENDS="" |
paul@19150 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/down*}s 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
paul@19150 | 22 # Rules to configure and make the package. |
paul@19150 | 23 compile_rules() |
paul@19150 | 24 { |
Hans-G?nter@20945 | 25 make -j 1 && |
paul@19150 | 26 make PREFIX=/usr DESTDIR=$DESTDIR install |
paul@19150 | 27 } |
paul@19150 | 28 |
paul@19150 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@19150 | 30 genpkg_rules() |
paul@19150 | 31 { |
paul@19150 | 32 mkdir -p $fs/usr |
paul@19150 | 33 cp -a $install/usr/bin $fs/usr |
paul@19150 | 34 } |