wok-6.x annotate sxiv/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 | 50039c91099a |
children | ac8ca9758df1 |
rev | line source |
---|---|
paul@18692 | 1 # SliTaz package receipt. |
paul@18692 | 2 |
paul@18692 | 3 PACKAGE="sxiv" |
Hans-G?nter@23688 | 4 VERSION="26" |
paul@18692 | 5 CATEGORY="graphics" |
paul@18692 | 6 SHORT_DESC="Simple X Image Viewer." |
paul@18692 | 7 MAINTAINER="paul@slitaz.org" |
paul@18692 | 8 WEB_SITE="https://github.com/muennich/sxiv" |
Hans-G?nter@23688 | 9 |
pascal@21234 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21234 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
paul@18692 | 12 |
Hans-G?nter@23688 | 13 DEPENDS="giflib imlib2 libexif xdg-utils" |
Hans-G?nter@23688 | 14 BUILD_DEPENDS="bzip2 giflib-dev imlib2-dev libexif-dev xorg-dev" |
paul@18692 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
paul@18692 | 22 # Rules to configure and make the package. |
paul@18692 | 23 compile_rules() |
paul@18692 | 24 { |
pascal@21234 | 25 make && |
paul@18692 | 26 make PREFIX=/usr DESTDIR=$DESTDIR install |
paul@18692 | 27 } |
paul@18692 | 28 |
paul@18692 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@18692 | 30 genpkg_rules() |
paul@18692 | 31 { |
paul@18692 | 32 mkdir -p $fs/usr/share |
Hans-G?nter@23688 | 33 |
Hans-G?nter@23688 | 34 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23688 | 35 cp -a $install/usr/share/sxiv $fs/usr/share |
paul@18692 | 36 } |