wok view libexif-gtk/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 97cea0db1214
children 69d0a23c9258
line source
1 # SliTaz package receipt.
3 PACKAGE="libexif-gtk"
4 VERSION="0.4.0"
5 CATEGORY="graphics"
6 SHORT_DESC="A library of widgets to help display EXIF tags in GTK programs."
7 MAINTAINER="developer@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://libexif.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/libexif/$TARBALL"
14 DEPENDS="gtk+ libexif"
15 BUILD_DEPENDS="file gtk+-dev libexif-dev"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/libexif/files/libexif-gtk/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/libexif-gtk/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # By default build with gtk2
30 ./configure &&
31 make -j 1 &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }