wok-6.x annotate sxiv/receipt @ rev 25498

Up dropbear (2022.83)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 15 12:09:07 2022 +0000 (23 months ago)
parents ac8ca9758df1
children
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."
pascal@24728 7 LICENSE="GPL2"
paul@18692 8 MAINTAINER="paul@slitaz.org"
paul@18692 9 WEB_SITE="https://github.com/muennich/sxiv"
Hans-G?nter@23688 10
pascal@21234 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21234 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
paul@18692 13
Hans-G?nter@23688 14 DEPENDS="giflib imlib2 libexif xdg-utils"
Hans-G?nter@23688 15 BUILD_DEPENDS="bzip2 giflib-dev imlib2-dev libexif-dev xorg-dev"
paul@18692 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
paul@18692 23 # Rules to configure and make the package.
paul@18692 24 compile_rules()
paul@18692 25 {
pascal@21234 26 make &&
paul@18692 27 make PREFIX=/usr DESTDIR=$DESTDIR install
paul@18692 28 }
paul@18692 29
paul@18692 30 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@18692 31 genpkg_rules()
paul@18692 32 {
paul@18692 33 mkdir -p $fs/usr/share
Hans-G?nter@23688 34
Hans-G?nter@23688 35 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23688 36 cp -a $install/usr/share/sxiv $fs/usr/share
paul@18692 37 }