core/qt5-webkit/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

source ../qt5.conf
2016-03-03 11:53:30 +08:00
pkgname=qt5-webkit
pkgver=${QSubVersion}
2016-03-17 07:19:42 +08:00
pkgrel=1
2016-03-03 11:53:30 +08:00
arch=('x86_64')
url='http://trac.webkit.org/wiki/QtWebKit'
2016-06-16 22:16:57 +08:00
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
2017-03-13 04:24:26 +08:00
license=('GPL3' 'LGPL3' 'FDL' 'custom')
2016-03-03 11:53:30 +08:00
options=("debug")
2016-06-16 22:16:57 +08:00
depends=('qt5-location' 'qt5-sensors' 'qt5-webchannel' 'libwebp' 'libxslt' 'libxcomposite' 'gst-plugins-base')
2017-03-13 04:24:26 +08:00
makedepends=('qt5-tools' 'ruby' 'gperf' 'python')
2016-03-03 11:53:30 +08:00
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')
2016-06-16 22:16:57 +08:00
_pkgfqn="${pkgname/5-/}-opensource-src-${pkgver}"
2017-03-13 04:24:26 +08:00
source=("http://download.qt.io/community_releases/${pkgver%.*}/${pkgver}-final/qtwebkit-opensource-src-${pkgver}.tar.xz")
md5sums=('60a6935aca4a7c553d0ec4646ceed3b4')
prepare() {
[[ -d build ]] && rm -rf build
mkdir -p build
}
2016-03-03 11:53:30 +08:00
build() {
cd build
2016-06-16 22:16:57 +08:00
qmake-qt5 ../${_pkgfqn}
2016-03-03 11:53:30 +08:00
make
make docs
}
package() {
2016-06-16 22:16:57 +08:00
cd build
2016-03-03 11:53:30 +08:00
make INSTALL_ROOT="${pkgdir}" install
make INSTALL_ROOT="${pkgdir}" install_docs
2016-06-16 22:16:57 +08:00
# 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' {} \;
2016-03-03 11:53:30 +08:00
# Fix wrong path in pc file
perl -pi -e "s, -L${srcdir}/?\S+,,g" "${pkgdir}"/usr/lib/pkgconfig/Qt5WebKit.pc
2016-06-16 22:16:57 +08:00
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
2016-03-03 11:53:30 +08:00
}