wok-current annotate djview/receipt @ rev 24485
updated djview (4.10.6 -> 4.12)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 16:41:03 2022 +0100 (2022-02-18) |
parents | 370da83187ab |
children | 00bff3684d8a |
rev | line source |
---|---|
psychomaniak@17122 | 1 # SliTaz package receipt. |
psychomaniak@17122 | 2 |
psychomaniak@17122 | 3 PACKAGE="djview" |
Hans-G?nter@24485 | 4 VERSION="4.12" |
psychomaniak@17122 | 5 CATEGORY="graphics" |
Hans-G?nter@22649 | 6 SHORT_DESC="Djvu files viewer." |
psychomaniak@17122 | 7 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@17122 | 8 LICENSE="GPL2" |
Hans-G?nter@24485 | 9 WEB_SITE="https://sourceforge.net/projects/djvu/" |
Hans-G?nter@22649 | 10 |
psychomaniak@17122 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24485 | 12 WGET_URL="$SF_MIRROR/djvu/$TARBALL" |
psychomaniak@17122 | 13 |
Hans-G?nter@22649 | 14 DEPENDS="djvulibre libQtGui libQtNetwork libQtOpenGL" |
Hans-G?nter@24485 | 15 BUILD_DEPENDS="autoconf automake djvulibre-dev file libtool mesa-dev |
Hans-G?nter@24485 | 16 qmake Qt4-dev" |
psychomaniak@17122 | 17 |
pascal@24361 | 18 # What is the latest version available today? |
pascal@24361 | 19 current_version() |
pascal@24361 | 20 { |
pascal@24361 | 21 wget -O - https://sourceforge.net/projects/djvu/files/DjView/ 2>/dev/null | \ |
pascal@24361 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24361 | 23 sed '/scope="row/!d;s|.*/DjView/||;s|/.*||;q' |
pascal@24361 | 24 } |
pascal@24361 | 25 |
psychomaniak@17122 | 26 # Rules to configure and make the package. |
psychomaniak@17122 | 27 compile_rules() |
psychomaniak@17122 | 28 { |
Hans-G?nter@24485 | 29 ./autogen.sh && |
psychomaniak@17122 | 30 make && |
psychomaniak@17122 | 31 make install |
psychomaniak@17122 | 32 } |
psychomaniak@17122 | 33 |
psychomaniak@17122 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17122 | 35 genpkg_rules() |
psychomaniak@17122 | 36 { |
Hans-G?nter@22649 | 37 cp -a $install/* $fs |
Hans-G?nter@24485 | 38 rm -rf $fs/usr/lib/*/*/*.la |
Hans-G?nter@24485 | 39 rm -rf $fs/usr/share/man |
Hans-G?nter@22649 | 40 ln -s djview $fs/usr/bin/djview4 |
psychomaniak@18071 | 41 cd $fs/usr/share/icons/hicolor/32x32/ |
psychomaniak@18071 | 42 mv mime* apps |
Hans-G?nter@22649 | 43 rm -rf ../64x64 |
Hans-G?nter@22649 | 44 rm -rf ../scalable |
psychomaniak@17122 | 45 } |