mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 03:04:36 +08:00
qt5-webkit: update to 5.6.1 (no build)
This commit is contained in:
parent
b7c962fc76
commit
a6bfe6925f
@ -1,43 +1,25 @@
|
||||
# maintainer almack
|
||||
|
||||
pkgname=qt5-webkit
|
||||
pkgver=5.6.0
|
||||
_pkgver=5.6.0
|
||||
_qtver=5.6.1
|
||||
pkgver=${_qtver/-/}
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url='http://trac.webkit.org/wiki/QtWebKit'
|
||||
pkgdesc='An open source web browser engine (Qt port)'
|
||||
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
|
||||
license=('LGPL2.1' 'GPL3')
|
||||
options=("debug")
|
||||
depends=(qt5-sensors qt5-location qt5-webchannel gst-plugins-base libxslt libxcomposite libwebp icu)
|
||||
makedepends=(qt5-declarative qt5-tools 'gperf' 'python2' 'mesa' 'ruby' 'git')
|
||||
depends=('qt5-location' 'qt5-sensors' 'qt5-webchannel' 'libwebp' 'libxslt' 'libxcomposite' 'gst-plugins-base')
|
||||
makedepends=('qt5-tools' 'ruby' 'gperf' 'python2')
|
||||
optdepends=('gst-plugins-good: For media format support'
|
||||
'gst-plugins-bad: For media format support'
|
||||
'gst-plugins-ugly: For media format support'
|
||||
'gst-libav: For media format support')
|
||||
# edit this source later, sf won't let us dl files that big
|
||||
source=("http://download.qt.io/development_releases/qt/5.6/5.6.0-rc/submodules/qtwebkit-opensource-src-${_pkgver}.tar.xz")
|
||||
sha1sums=('a68e8bfdf237cfb6b958674a3b609fcb2f8423f3')
|
||||
|
||||
_prlfix() {
|
||||
# Fix wrong path in prl files
|
||||
find "${pkgdir}/usr/lib" -type f -name '*.prl' \
|
||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd qtwebkit-opensource-src-${_pkgver}
|
||||
|
||||
if [ ! -d include ]; then
|
||||
syncqt.pl-qt5 -version 5.6.0 Source/sync.profile
|
||||
fi
|
||||
}
|
||||
_pkgfqn="${pkgname/5-/}-opensource-src-${pkgver}"
|
||||
source=("http://download.qt.io/community_releases/${pkgver%.*}/${pkgver}/qtwebkit-opensource-src-${pkgver}.tar.xz")
|
||||
sha1sums=('c1ebe5c366cde29b09004de60ad6da2857300bae')
|
||||
|
||||
build() {
|
||||
cd qtwebkit-opensource-src-${_pkgver}
|
||||
mkdir -p build
|
||||
cd build
|
||||
qmake-qt5 ..
|
||||
mkdir -p build && cd build
|
||||
qmake-qt5 ../${_pkgfqn}
|
||||
|
||||
make
|
||||
|
||||
@ -45,12 +27,17 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd qtwebkit-opensource-src-${_pkgver}/build
|
||||
cd build
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
make INSTALL_ROOT="${pkgdir}" install_docs
|
||||
|
||||
_prlfix
|
||||
|
||||
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
||||
find "$pkgdir/usr/lib" -type f -name '*.prl' \
|
||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
||||
|
||||
# Fix wrong path in pc file
|
||||
perl -pi -e "s, -L${srcdir}/?\S+,,g" "${pkgdir}"/usr/lib/pkgconfig/Qt5WebKit.pc
|
||||
|
||||
install -d "$pkgdir"/usr/share/licenses
|
||||
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user