wok annotate goldendict/receipt @ rev 25647
Backout salvador 10% speedup: crashes with large files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 26 12:15:51 2024 +0000 (7 months ago) |
parents | 6b33f9da53d4 |
children |
rev | line source |
---|---|
pascal@20020 | 1 # SliTaz package receipt. |
pascal@20020 | 2 |
pascal@20020 | 3 PACKAGE="goldendict" |
pascal@20020 | 4 VERSION="1.0.1" |
pascal@20020 | 5 CATEGORY="office" |
pascal@20020 | 6 SHORT_DESC="A feature-rich dictionary lookup program." |
pascal@20020 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20020 | 8 LICENSE="GPL3" |
pascal@20020 | 9 TARBALL="$PACKAGE-$VERSION-src.tar.bz2" |
pascal@20020 | 10 WEB_SITE="http://goldendict.org/" |
pascal@20020 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@20020 | 12 |
pascal@20020 | 13 DEPENDS="libQtWebkit libvorbis hunspell phonon xorg-libXtst" |
pascal@20020 | 14 BUILD_DEPENDS="libvorbis-dev zlib-dev hunspell-dev xorg-dev qmake Qt4-dev \ |
pascal@20020 | 15 xorg-libXtst-dev phonon-dev" |
pascal@20020 | 16 |
pascal@24403 | 17 # What is the latest version available today? |
pascal@24403 | 18 current_version() |
pascal@24403 | 19 { |
pascal@24403 | 20 wget -O - https://sourceforge.net/projects/goldendict/files/goldendict/ 2>/dev/null | \ |
pascal@25605 | 21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@25608 | 22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@25608 | 23 sed '/scope="row/!d;s|.*ict-||;s|[_-].*||;q' |
pascal@24403 | 24 } |
pascal@24403 | 25 |
pascal@20020 | 26 # Rules to configure and make the package. |
pascal@20020 | 27 compile_rules() |
pascal@20020 | 28 { |
pascal@20020 | 29 qmake && sed -i 's|local/||g' Makefile |
pascal@20020 | 30 make && |
pascal@20020 | 31 make INSTALL_ROOT=$DESTDIR install |
pascal@20020 | 32 } |
pascal@20020 | 33 |
pascal@20020 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20020 | 35 genpkg_rules() |
pascal@20020 | 36 { |
pascal@20020 | 37 cp -a $install/usr $fs/ |
pascal@20020 | 38 } |