opt/qtwebkit/Pkgfile
2019-10-03 22:06:07 +10:00

33 lines
913 B
Plaintext

# Description: QtWebKit for qt5.
# URL: https://www.qt.io/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: qt5 ruby icu hyphen
name=qtwebkit
version=5.212.0.a3
_version=${version/.a/-alpha}
release=1
source=(https://github.com/annulen/webkit/releases/download/$name-$_version/$name-$_version.tar.xz)
build() {
cd $name-$_version
install -d build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPORT=Qt \
-DENABLE_TOOLS=OFF
make
make DESTDIR=$PKG install
# 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
}