extra/qt5-webkit to 5.212.0alpha3-1

This commit is contained in:
Kevin Mihelich 2019-07-01 02:11:09 +00:00
parent 42cbd6b4d5
commit 703404c6f6

View file

@ -10,34 +10,26 @@
highmem=1
pkgname=qt5-webkit
_commit=95401fe3908e0b4eebc9447e678298d768617bc7
pkgver=5.212.0alpha2+156+g95401fe3908
pkgrel=3
_pkgver=5.212.0-alpha3
pkgver=${_pkgver/-/}
pkgrel=1
arch=(x86_64)
url='https://www.qt.io'
license=(GPL3 LGPL3 FDL custom)
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen)
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools git)
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz"
'atomic.patch')
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools)
optdepends=('gst-plugins-good: Webm codec support')
conflicts=(qt5-webkit-ng qt5-webkit-og)
replaces=(qt5-webkit-ng qt5-webkit-og)
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
source=(https://github.com/annulen/webkit/archive/$_commit.tar.gz
atomic.patch)
sha256sums=('abb506f757a195fb92f9ebdc6b4119c3961a1a40b44b1c1b6f8dceab5a2c70d2'
sha256sums=('357eee582445574472e410ebece632d06fa0ec94358fc4345f2a713922df5e17'
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
#pkgver() {
# cd webkit
# git describe --tags | sed -e 's/-/+/g' -e 's/+alpha/alpha/' -e 's/qtwebkit+//' -e 's/v//'
#}
prepare() {
mkdir -p build
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
cd webkit-$_commit
cd webkit-$pkgver
patch -p0 -i ../atomic.patch
fi
}
@ -47,9 +39,8 @@ build() {
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
cmake ../webkit-$_commit \
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPORT=Qt \
-DENABLE_TOOLS=OFF \
$CONFIG
@ -62,10 +53,4 @@ package() {
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
# 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
}