opt/qtwebkit/Pkgfile

34 lines
966 B
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-04-13 15:23:13 +02:00
# Depends on: hyphen icu qt5 ruby libxslt
2016-10-02 11:52:16 +02:00
name=qtwebkit
2020-04-13 15:23:13 +02:00
version=5.212.0.a4
_version=${version/.a/-alpha}
2019-12-02 02:49:22 +01:00
release=2
2020-04-13 15:23:13 +02:00
source=(https://github.com/annulen/webkit/releases/download/$name-$_version/$name-$_version.tar.xz)
2016-10-02 11:52:16 +02:00
build() {
2018-07-13 16:55:43 +02:00
cd $name-$_version
2016-10-02 11:52:16 +02:00
install -d build
cd build
2017-11-25 02:27:23 +01:00
2018-07-13 16:55:43 +02:00
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-12-02 02:49:22 +01:00
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
2018-07-13 16:55:43 +02:00
-DCMAKE_BUILD_TYPE=Release \
-DPORT=Qt \
-DENABLE_TOOLS=OFF
2016-10-02 11:52:16 +02:00
2018-07-13 16:55:43 +02:00
make
make DESTDIR=$PKG install
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
}