wok annotate nomacs/receipt @ rev 25362
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 28 07:24:59 2022 +0000 (2022-07-28) |
parents | 984910ac3270 |
children | 73f36875e5a7 |
rev | line source |
---|---|
psychomaniak@17125 | 1 # SliTaz package receipt. |
psychomaniak@17125 | 2 |
psychomaniak@17125 | 3 PACKAGE="nomacs" |
psychomaniak@17125 | 4 VERSION="1.6.0" |
psychomaniak@17125 | 5 CATEGORY="graphics" |
psychomaniak@17125 | 6 SHORT_DESC="Pictures browser" |
psychomaniak@17125 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@17125 | 8 LICENSE="GPL3" |
psychomaniak@17125 | 9 WEB_SITE="http://www.nomacs.org" |
psychomaniak@17125 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
psychomaniak@17125 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/files/$PACKAGE-$VERSION-source.tar.bz2" |
psychomaniak@17125 | 12 |
psychomaniak@17125 | 13 DEPENDS="libQtCore libQtGui libQtNetwork libgomp exiv2" |
psychomaniak@17125 | 14 BUILD_DEPENDS="Qt4-dev qmake cmake exiv2-dev libraw-dev" |
psychomaniak@17125 | 15 SUGGESTED="xdg-utils qtconfig" |
psychomaniak@17125 | 16 |
pascal@24402 | 17 # What is the latest version available today? |
pascal@24402 | 18 current_version() |
pascal@24402 | 19 { |
pascal@24402 | 20 wget -O - https://sourceforge.net/projects/nomacs/files/ 2>/dev/null | \ |
pascal@24402 | 21 sed '/scope="row/!d;s|.*/nomacs-||;s|/.*||;q' |
pascal@24402 | 22 } |
pascal@24402 | 23 |
psychomaniak@17125 | 24 # Rules to configure and make the package. |
psychomaniak@17125 | 25 compile_rules() |
psychomaniak@17125 | 26 { |
psychomaniak@17125 | 27 cd $src/src/img ; cp -f nomacs32.png nomacs.png |
psychomaniak@17125 | 28 cd $src ; sed -i 's/ ON/ OFF/g' CMakeLists.txt |
psychomaniak@17125 | 29 mkdir build ; cd build |
psychomaniak@17125 | 30 cmake \ |
psychomaniak@17125 | 31 -DENABLE_OPENCV=OFF \ |
psychomaniak@17125 | 32 -DENABLE_RAW=OFF \ |
psychomaniak@17125 | 33 -DENABLE_WEBP=OFF \ |
psychomaniak@17125 | 34 -DENABLE_TIFF=OFF \ |
psychomaniak@17125 | 35 -DDISABLE_QT_DEBUG=ON \ |
psychomaniak@17125 | 36 -DCMAKE_INSTALL_PREFIX=/usr .. |
psychomaniak@17125 | 37 make |
psychomaniak@17125 | 38 make DESTDIR=$DESTDIR install |
psychomaniak@17125 | 39 } |
psychomaniak@17125 | 40 |
psychomaniak@17125 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17125 | 42 genpkg_rules() |
psychomaniak@17125 | 43 { |
psychomaniak@17125 | 44 cp -a $install/* $fs |
psychomaniak@17125 | 45 rm -rf $src/build |
psychomaniak@17125 | 46 cd $fs/usr/share/$PACKAGE/translations |
psychomaniak@17125 | 47 find * -size -62k -delete |
psychomaniak@17125 | 48 } |