wok view viewnior/receipt @ rev 24419

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 11:14:46 2022 +0000 (2022-02-11)
parents 5ea0ce1cecc0
children 870e1ce31226
line source
1 # SliTaz package receipt.
3 PACKAGE="viewnior"
4 VERSION="1.7"
5 CATEGORY="graphics"
6 TAGS="image photo viewer"
7 SHORT_DESC="Fast and elegant image viewer."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://siyanpanayotov.com/project/viewnior/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/hellosiyan/Viewnior/archive/$TARBALL"
15 DEPENDS="atk bzlib cairo exiv2 fontconfig freetype gcc-lib-base gdk-pixbuf \
16 glib glibc-base gtk+ harfbuzz libffi libgio libpng libxcb libxml2
17 pango pcre pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext
18 xorg-libXrender zlib"
19 BUILD_DEPENDS="exiv2-dev gtk+-dev libtool meson"
21 HOST_ARCH="i486 arm"
23 case "$ARCH" in
24 i?86) BUILD_DEPENDS="$BUILD_DEPENDS shared-mime-info-dev" ;;
25 esac
27 current_version()
28 {
29 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
30 sed '/archive.*tar/!d;s|.*/viewnior-\(.*\).tar.*|\1|;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 meson --prefix=/usr builddir &&
37 cd builddir &&
38 ninja &&
39 ninja install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_files viewnior *.ui
46 cook_copy_icons
47 }