wok view exiftool/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | 75d8b8730358 |
children | a4e0f9035e33 |
line source
1 # SliTaz package receipt.
3 PACKAGE="exiftool"
4 VERSION="12.00"
5 CATEGORY="system-tools"
6 SHORT_DESC="Application for reading, writing and editing meta information in a wide variety of files."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="Artistic"
9 WEB_SITE="https://exiftool.org/"
11 SOURCE="Image-ExifTool"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 SUGGESTED="perl-archive-zip perl-io-compress"
16 DEPENDS="perl"
17 BUILD_DEPENDS="perl"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 perl Makefile.PL &&
30 make -j 1 &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 rm -rf $fs/usr/share
39 }