wok view sxiv/receipt @ rev 24083
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 10 11:40:16 2021 +0000 (2021-07-10) |
parents | 50039c91099a |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sxiv"
4 VERSION="26"
5 CATEGORY="graphics"
6 SHORT_DESC="Simple X Image Viewer."
7 MAINTAINER="paul@slitaz.org"
8 WEB_SITE="https://github.com/muennich/sxiv"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
13 DEPENDS="giflib imlib2 libexif xdg-utils"
14 BUILD_DEPENDS="bzip2 giflib-dev imlib2-dev libexif-dev xorg-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make &&
26 make PREFIX=/usr DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/share/sxiv $fs/usr/share
36 }