wok-next view qtwebkit/receipt @ rev 19996
Add hyphen
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Oct 20 16:30:46 2017 +0200 (2017-10-20) |
parents | 3052bbfd8cd8 |
children | ddbb21cc825a |
line source
1 # SliTaz package receipt.
3 PACKAGE="qtwebkit"
4 VERSION="5.212.0-alpha2"
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.xz"
10 WEB_SITE="http://code.qt.io/cgit/qt/qtwebkit.git/"
11 WEB_SITE_2="https://github.com/annulen/webkit/"
12 WGET_URL="${WEB_SITE_2}releases/download/${TARBALL/.tar*/}/$TARBALL"
14 PROVIDE="libQtWebkit"
15 CONFIG_FILES="/etc/fonts/conf.d/10-QtWebkit-monospace.conf"
17 DEPENDS="qt5 sqlite gstreamer1 gst1-plugins-base"
18 BUILD_DEPENDS="qt5-dev cmake bison flex gperf ruby-dev xorg-dev mesa17-dev \
19 freetype-dev fontconfig-dev sqlite-dev libpng-dev libjpeg-turbo-dev icu-dev \
20 glib-dev zlib-dev libxslt-python libxslt-dev gstreamer1-dev \
21 gst1-plugins-base-dev hyphen-dev "
23 compile_rules()
24 {
25 sed 's|FixedFont, default.*$|FixedFont, QLatin1String("monospace"));|' -i \
26 $src/Source/WebKit/qt/Api/qwebsettings.cpp
27 QTDIR=/usr QMAKE_CXXFLAGS=$CFLAGS \
28 Tools/Scripts/build-webkit \
29 --qt \
30 --makeargs=$MAKEFLAGS \
31 --prefix=/usr \
32 --no-webkit2 \
33 --no-force-sse2 \
34 DEFINES+=ENABLE_JIT=0 \
35 DEFINES+=ENABLE_YARR_JIT=0 \
36 DEFINES+=ENABLE_ASSEMBLER=0 \
37 DEFINES+=ENABLE_SMOOTH_SCROLLING=1
38 make INSTALL_ROOT=$DESTDIR -C WebKitBuild/Release install
40 }
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib $fs/usr/bin $fs/etc/fonts/conf.d
45 cat > $fs/etc/fonts/conf.d/10-QtWebkit-monospace.conf <<EOT
46 <fontconfig><alias>
47 <family>monospace</family>
48 <prefer>
49 <family>DejaVu Sans Mono</family>
50 </prefer>
51 </alias></fontconfig>
52 EOT
53 cp -a $src/WebKitBuild/Release/bin/Qt* $fs/usr/bin
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 }