opt/qtwebkit/Pkgfile

32 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-10-02 11:52:16 +02:00
# Description: QtWebKit for qt5.
2017-02-10 10:11:59 +01:00
# URL: https://www.qt.io/
2016-10-02 11:52:16 +02:00
# Maintainer: Danny Rawlins, crux at romster dot me
2020-11-14 14:44:55 +01:00
# Depends on: hyphen icu qt5 ruby
2016-10-02 11:52:16 +02:00
name=qtwebkit
2020-07-10 05:13:34 +02:00
version=5.212
release=1
2020-11-14 14:44:55 +01:00
source=(https://download.qt.io/snapshots/ci/qtwebkit/$version/latest/src/submodules/$name-opensource-src-$version.tar.xz
qtwebkit-5.212.0_pre20200309-icu-68.patch)
2016-10-02 11:52:16 +02:00
build() {
2020-11-14 14:44:55 +01:00
[ $(pkginfo -i | awk '/^icu / {split($2,a,"."); print a[1]}') -ge 68 ] && \
patch -d $name-opensource-src-$version -p1 -i $SRC/qtwebkit-5.212.0_pre20200309-icu-68.patch
cmake -S $name-opensource-src-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-D PORT=Qt \
-D ENABLE_TOOLS=OFF
2016-10-02 11:52:16 +02:00
2020-07-10 05:13:34 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2016-10-02 11:52:16 +02:00
2018-07-13 16:55:43 +02: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 11:52:16 +02:00
}