wok-current annotate exif/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | d02377422e45 |
children | 7dd01dedad38 |
rev | line source |
---|---|
sygne@2035 | 1 # SliTaz package receipt. |
sygne@2035 | 2 |
sygne@2035 | 3 PACKAGE="exif" |
Hans-G?nter@20897 | 4 VERSION="0.6.21" |
sygne@2035 | 5 CATEGORY="graphics" |
sygne@2035 | 6 SHORT_DESC="Read exif data from images" |
sygne@2035 | 7 MAINTAINER="sygne@ombres.eu" |
pascal@15588 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@20897 | 9 WEB_SITE="http://libexif.sourceforge.net/" |
Hans-G?nter@20897 | 10 |
sygne@2035 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
sygne@2035 | 12 WGET_URL="$SF_MIRROR/libexif/$TARBALL" |
sygne@2035 | 13 |
pascal@15588 | 14 DEPENDS="libexif popt" |
pascal@15588 | 15 BUILD_DEPENDS="libexif libexif-dev popt-dev" |
pascal@15588 | 16 |
pascal@24385 | 17 # What is the latest version available today? |
pascal@24385 | 18 current_version() |
pascal@24385 | 19 { |
pascal@24385 | 20 wget -O - https://sourceforge.net/projects/libexif/files/libexif/ 2>/dev/null | \ |
pascal@24385 | 21 sed '/scope="row/!d;/release/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 22 sed '/scope="row/!d;s|.*/libexif/||;s|/.*||;q' |
pascal@24385 | 23 } |
pascal@24385 | 24 |
sygne@2035 | 25 # Rules to configure and make the package. |
sygne@2035 | 26 compile_rules() |
sygne@2035 | 27 { |
Hans-G?nter@20897 | 28 ./configure \ |
Hans-G?nter@20897 | 29 --prefix=/usr \ |
Hans-G?nter@20897 | 30 --infodir=/usr/share/info \ |
Hans-G?nter@20897 | 31 --mandir=/usr/share/man \ |
Hans-G?nter@20897 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@20897 | 33 make -j 1 && |
Hans-G?nter@20897 | 34 make DESTDIR=$DESTDIR install |
sygne@2035 | 35 } |
sygne@2035 | 36 |
sygne@2035 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@2035 | 38 genpkg_rules() |
sygne@2035 | 39 { |
sygne@2035 | 40 mkdir -p $fs/usr |
pascal@15588 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@20897 | 42 |
Hans-G?nter@20897 | 43 # localisation |
sygne@2035 | 44 mkdir -p $fs/usr/share/locale |
Hans-G?nter@20897 | 45 LOCALES="da de es fr id it zh_CN" |
Hans-G?nter@20897 | 46 for locale in $LOCALES |
sygne@2035 | 47 do |
Hans-G?nter@20897 | 48 cp -a -r $install/usr/share/locale/$locale \ |
Hans-G?nter@20897 | 49 $fs/usr/share/locale |
sygne@2035 | 50 done |
sygne@2035 | 51 } |