blob: 7b8889c11c1c41d6f95138bef41ded99103f9560 (
plain)
1 # Description: QtWebKit for qt5.
2 # URL: https://www.qt.io/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: qt5 ruby icu hyphen
5
6 name=qtwebkit
7 version=5.212.0.a3
8 _version=${version/.a/-alpha}
9 release=2
10 source=(https://github.com/annulen/webkit/releases/download/$name-$_version/$name-$_version.tar.xz
11 icu65.patch)
12
13 build() {
14 cd $name-$_version
15
16 patch -p1 -i $SRC/icu65.patch
17
18 install -d build
19 cd build
20
21 cmake .. \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
24 -DCMAKE_BUILD_TYPE=Release \
25 -DPORT=Qt \
26 -DENABLE_TOOLS=OFF
27
28 make
29 make DESTDIR=$PKG install
30
31 # Fix pkgconfig files
32 sed -e 's|qt/Qt5WebKit|qt/QtWebKit|' -i $PKG/usr/lib/pkgconfig/Qt5WebKit.pc
33 sed -e 's|qt/Qt5WebKitWidgets|qt/QtWebKitWidgets|' -i $PKG/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
34 sed -e '/Name/a Description: Qt WebKit module' -i $PKG/usr/lib/pkgconfig/Qt5WebKit.pc
35 sed -e '/Name/a Description: Qt WebKitWidgets module' -i $PKG/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
36 }
|