wok view libpano13/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 eb55bc8c389d
children a9a8eabe376a
line source
1 # SliTaz package receipt.
3 PACKAGE="libpano13"
4 VERSION="2.9.19"
5 CATEGORY="development"
6 SHORT_DESC="Panorama tools library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://panotools.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/panotools/$TARBALL"
14 DEPENDS="jpeg libpng tiff"
15 BUILD_DEPENDS="bash jpeg-dev libpng-dev tiff-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/panotools/files/libpano13/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;/tar/!d;s|.*/libpano13-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --build=$HOST_SYSTEM \
31 --host=$HOST_SYSTEM &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr
44 }