wok-current view qtwebkit/receipt @ rev 24903
updated mercurial (5.3.1 -> 6.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 11:10:54 2022 +0100 (2022-04-09) |
parents | 6135577f4d08 |
children | 505d1daeed6c |
line source
1 # SliTaz package receipt.
3 PACKAGE="qtwebkit"
4 VERSION="2.3.4"
5 CATEGORY="network"
6 SHORT_DESC="KDE version of Qt Webkit browser engine."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://code.qt.io/cgit/qt/qtwebkit.git/"
11 WGET_URL="$WEB_SITE/stable/$PACKAGE-${VERSION:0:3}/$VERSION/src/$TARBALL"
13 PROVIDE="libQtWebkit"
14 CONFIG_FILES="/etc/fonts/conf.d/10-QtWebkit-monospace.conf"
16 DEPENDS="libQtCore libQtDBus libQtGui libQtXml libQtNetwork libQtOpenGL \
17 mesa sqlite gstreamer orc gst-plugins-base"
18 BUILD_DEPENDS="Qt4-dev libQtDeclarative qmake bison flex gperf ruby-dev mesa-dev \
19 sqlite-dev libpng-dev jpeg-dev gstreamer-dev gst-plugins-base-dev gst-plugins-base"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/qtwebkit/qtwebkit/tags 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
26 }
28 compile_rules()
29 {
30 sed 's|FixedFont, default.*$|FixedFont, QLatin1String("monospace"));|' -i \
31 $src/Source/WebKit/qt/Api/qwebsettings.cpp
32 QTDIR=/usr QMAKE_CXXFLAGS=$CFLAGS \
33 Tools/Scripts/build-webkit \
34 --qt \
35 --makeargs=$MAKEFLAGS \
36 --prefix=/usr \
37 --no-webkit2 \
38 --no-force-sse2 \
39 DEFINES+=ENABLE_JIT=0 \
40 DEFINES+=ENABLE_YARR_JIT=0 \
41 DEFINES+=ENABLE_ASSEMBLER=0 \
42 DEFINES+=ENABLE_SMOOTH_SCROLLING=1
43 make INSTALL_ROOT=$DESTDIR -C WebKitBuild/Release install
45 }
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib $fs/usr/bin $fs/etc/fonts/conf.d
50 cat > $fs/etc/fonts/conf.d/10-QtWebkit-monospace.conf <<EOT
51 <fontconfig><alias>
52 <family>monospace</family>
53 <prefer>
54 <family>DejaVu Sans Mono</family>
55 </prefer>
56 </alias></fontconfig>
57 EOT
58 cp -a $src/WebKitBuild/Release/bin/Qt* $fs/usr/bin
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 }