wok-current annotate ufraw/receipt @ rev 25275
updated redis (6.2.6 -> 7.0.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 14:08:51 2022 +0100 (2022-07-18) |
parents | bf447c84094b |
children | 7dd01dedad38 |
rev | line source |
---|---|
gokhlayeh@5872 | 1 # SliTaz package receipt. |
gokhlayeh@5872 | 2 |
gokhlayeh@5872 | 3 PACKAGE="ufraw" |
pascal@21160 | 4 VERSION="0.22" |
gokhlayeh@5872 | 5 CATEGORY="graphics" |
gokhlayeh@5872 | 6 SHORT_DESC="Utility to read and manipulate raw images from digital cameras." |
pankso@12741 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
gokhlayeh@5872 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@12741 | 10 WEB_SITE="http://ufraw.sourceforge.net/" |
pankso@12741 | 11 WGET_URL="$SF_MIRROR/project/ufraw/ufraw/ufraw-$VERSION/$TARBALL" |
pankso@12741 | 12 SUGGESTED="ufraw-locales gimp-plugin-ufraw" |
pankso@12741 | 13 |
pascal@21167 | 14 DEPENDS="gtk+ exiv2 lcms tiff libgtkimageview libgomp bzip2 lcms2" |
pankso@12741 | 15 BUILD_DEPENDS="gimp gimp-dev lcms-dev tiff-dev exiv2-dev gtk+-dev \ |
pascal@21167 | 16 libgtkimageview-dev bzip2-dev lcms2-dev" |
gokhlayeh@5872 | 17 |
pascal@24082 | 18 current_version() |
pascal@24082 | 19 { |
pascal@24082 | 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \ |
pascal@24082 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24082 | 23 } |
pascal@24082 | 24 |
gokhlayeh@5872 | 25 # Rules to configure and make the package. |
gokhlayeh@5872 | 26 compile_rules() |
gokhlayeh@5872 | 27 { |
pascal@21160 | 28 sed -i 's|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\ |
pascal@21160 | 29 throw Exiv2::Error(Exiv2::kerErrorMessage, error);\ |
pascal@21160 | 30 //#else\n//&\n//#endif|' ufraw_exiv2.cc |
pascal@21160 | 31 sed -i -e 's|return TRUE|return boolean(TRUE)|' \ |
pascal@21160 | 32 -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc |
gokhlayeh@5872 | 33 ./configure \ |
gokhlayeh@5872 | 34 $CONFIGURE_ARGS && |
pankso@12741 | 35 make && make install |
gokhlayeh@5872 | 36 } |
gokhlayeh@5872 | 37 |
gokhlayeh@5872 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@5872 | 39 genpkg_rules() |
gokhlayeh@5872 | 40 { |
gokhlayeh@5872 | 41 mkdir -p $fs/usr/share/applications |
pankso@12741 | 42 cp -a $install/usr/bin $fs/usr |
gokhlayeh@5872 | 43 cp -a $src/ufraw.desktop $fs/usr/share/applications |
gokhlayeh@5872 | 44 } |