2016-10-02 20:52:16 +11:00
|
|
|
# Description: QtWebKit for qt5.
|
2017-02-10 20:11:59 +11:00
|
|
|
# URL: https://www.qt.io/
|
2016-10-02 20:52:16 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-04-13 23:23:13 +10:00
|
|
|
# Depends on: hyphen icu qt5 ruby libxslt
|
2016-10-02 20:52:16 +11:00
|
|
|
|
|
|
|
name=qtwebkit
|
2020-07-10 13:13:34 +10:00
|
|
|
version=5.212
|
|
|
|
release=1
|
|
|
|
source=(https://download.qt.io/snapshots/ci/qtwebkit/$version/latest/src/submodules/$name-opensource-src-$version.tar.xz)
|
2016-10-02 20:52:16 +11:00
|
|
|
|
|
|
|
build() {
|
2020-07-10 13:13:34 +10:00
|
|
|
cmake -S$name-opensource-src-$version -Bbuild -GNinja \
|
2018-07-14 00:55:43 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-12-02 12:49:22 +11:00
|
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
2018-07-14 00:55:43 +10:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DPORT=Qt \
|
|
|
|
-DENABLE_TOOLS=OFF
|
2016-10-02 20:52:16 +11:00
|
|
|
|
2020-07-10 13:13:34 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2016-10-02 20:52:16 +11:00
|
|
|
|
2018-07-14 00:55:43 +10:00
|
|
|
# Fix pkgconfig files
|
|
|
|
sed -e 's|qt/Qt5WebKit|qt/QtWebKit|' -i $PKG/usr/lib/pkgconfig/Qt5WebKit.pc
|
|
|
|
sed -e 's|qt/Qt5WebKitWidgets|qt/QtWebKitWidgets|' -i $PKG/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
|
|
|
|
sed -e '/Name/a Description: Qt WebKit module' -i $PKG/usr/lib/pkgconfig/Qt5WebKit.pc
|
|
|
|
sed -e '/Name/a Description: Qt WebKitWidgets module' -i $PKG/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
|
2016-10-02 20:52:16 +11:00
|
|
|
}
|