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