mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/qt5-webkit to 5.212.0alpha4-8
This commit is contained in:
parent
412495b3e9
commit
40f96da7d7
1 changed files with 10 additions and 8 deletions
|
@ -12,21 +12,26 @@ highmem=1
|
||||||
pkgname=qt5-webkit
|
pkgname=qt5-webkit
|
||||||
_pkgver=5.212.0-alpha4
|
_pkgver=5.212.0-alpha4
|
||||||
pkgver=${_pkgver/-/}
|
pkgver=${_pkgver/-/}
|
||||||
pkgrel=7
|
pkgrel=8
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url='https://www.qt.io'
|
url='https://www.qt.io'
|
||||||
license=(GPL3 LGPL3 FDL custom)
|
license=(GPL3 LGPL3 FDL custom)
|
||||||
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
|
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
|
||||||
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz"
|
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz"
|
||||||
|
qt5-webkit-python-3.9.patch::"https://github.com/qtwebkit/qtwebkit/commit/78360c01.patch"
|
||||||
|
qt5-webkit-bison-3.7.patch::"https://github.com/qtwebkit/qtwebkit/commit/d92b11fe.patch"
|
||||||
'atomic.patch')
|
'atomic.patch')
|
||||||
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
|
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
|
||||||
makedepends=(cmake ruby gperf python qt5-doc qt5-tools)
|
makedepends=(cmake ruby gperf python qt5-doc qt5-tools)
|
||||||
optdepends=('gst-plugins-good: Webm codec support')
|
optdepends=('gst-plugins-good: Webm codec support')
|
||||||
sha256sums=('9ca126da9273664dd23a3ccd0c9bebceb7bb534bddd743db31caf6a5a6d4a9e6'
|
sha256sums=('9ca126da9273664dd23a3ccd0c9bebceb7bb534bddd743db31caf6a5a6d4a9e6'
|
||||||
|
'9db5480dfbd3c440489e8e4131e3555b2af61fa4b6c19f35227588c5996be128'
|
||||||
|
'cc5a2b762426e9cda5a3ae056bba266b5f775ee75c0590913839c255d5f10db0'
|
||||||
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
|
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p build
|
patch -d qtwebkit-$_pkgver -p1 -i ../qt5-webkit-python-3.9.patch # Fix build with python 3.9
|
||||||
|
patch -d qtwebkit-$_pkgver -p1 -i ../qt5-webkit-bison-3.7.patch # Fix build with bison 3.7
|
||||||
|
|
||||||
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
|
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
|
||||||
cd qtwebkit-$_pkgver
|
cd qtwebkit-$_pkgver
|
||||||
|
@ -35,22 +40,19 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd build
|
|
||||||
|
|
||||||
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
|
||||||
|
|
||||||
cmake ../qtwebkit-$_pkgver \
|
cmake -B build -S qtwebkit-$_pkgver \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
||||||
-DPORT=Qt \
|
-DPORT=Qt \
|
||||||
-DENABLE_TOOLS=OFF \
|
-DENABLE_TOOLS=OFF \
|
||||||
$CONFIG
|
$CONFIG
|
||||||
make
|
cmake --build build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
make DESTDIR="$pkgdir" install
|
|
||||||
|
|
||||||
install -d "$pkgdir"/usr/share/licenses
|
install -d "$pkgdir"/usr/share/licenses
|
||||||
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
||||||
|
|
Loading…
Reference in a new issue