PKGBUILDs/extra/qt5-webkit/PKGBUILD

72 lines
2.2 KiB
Bash
Raw Normal View History

2016-03-27 18:30:28 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
2017-06-17 14:49:29 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
2016-03-27 18:30:28 +00:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2017-08-14 18:29:11 +00:00
# - patch to link with libatomic on v5/v6
2017-06-17 14:49:29 +00:00
# - disable jit on v5/v6
# - use tarball source
2017-06-17 14:49:29 +00:00
highmem=1
2016-03-27 18:30:28 +00:00
pkgname=qt5-webkit
_commit=95401fe3908e0b4eebc9447e678298d768617bc7
pkgver=5.212.0alpha2+156+g95401fe3908
pkgrel=1
2017-11-17 23:32:01 +00:00
arch=(x86_64)
2019-02-04 13:43:19 +00:00
url='https://www.qt.io'
2017-06-17 14:49:29 +00:00
license=(GPL3 LGPL3 FDL custom)
2016-03-27 18:30:28 +00:00
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
2017-06-17 14:49:29 +00:00
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen)
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools git)
2016-03-27 18:30:28 +00:00
optdepends=('gst-plugins-good: Webm codec support')
2017-08-14 18:29:11 +00:00
conflicts=(qt5-webkit-ng qt5-webkit-og)
replaces=(qt5-webkit-ng qt5-webkit-og)
2017-06-08 23:43:16 +00:00
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
source=(https://github.com/annulen/webkit/archive/$_commit.tar.gz
2017-08-14 18:29:11 +00:00
atomic.patch)
sha256sums=('abb506f757a195fb92f9ebdc6b4119c3961a1a40b44b1c1b6f8dceab5a2c70d2'
2017-08-14 18:29:11 +00:00
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
2016-03-27 18:30:28 +00:00
#pkgver() {
# cd webkit
# git describe --tags | sed -e 's/-/+/g' -e 's/+alpha/alpha/' -e 's/qtwebkit+//' -e 's/v//'
#}
2016-03-27 18:30:28 +00:00
prepare() {
mkdir -p build
2017-08-14 18:29:11 +00:00
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
cd webkit-$_commit
2017-08-14 18:29:11 +00:00
patch -p0 -i ../atomic.patch
fi
2016-03-27 18:30:28 +00:00
}
build() {
2017-06-17 14:49:29 +00:00
cd build
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
2016-03-27 18:30:28 +00:00
cmake ../webkit-$_commit \
2017-06-17 14:49:29 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPORT=Qt \
-DENABLE_TOOLS=OFF \
2017-08-14 18:29:11 +00:00
$CONFIG
2016-03-27 18:30:28 +00:00
make
}
package() {
cd build
2017-06-17 14:49:29 +00:00
make DESTDIR="$pkgdir" install
2016-03-27 18:30:28 +00:00
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
2017-06-25 13:57:55 +00:00
# Fix pkgconfig files
sed -e 's|qt/Qt5WebKit|qt/QtWebKit|' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKit.pc
sed -e 's|qt/Qt5WebKitWidgets|qt/QtWebKitWidgets|' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
sed -e '/Name/a Description: Qt WebKit module' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKit.pc
sed -e '/Name/a Description: Qt WebKitWidgets module' -i "$pkgdir"/usr/lib/pkgconfig/Qt5WebKitWidgets.pc
2016-03-27 18:30:28 +00:00
}