123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- # Maintainer: Antonio Rojas <arojas@archlinux.org>
- pkgname=qt5-webkit-print
- _qtver=5.212.0-alpha2
- pkgver=${_qtver/-/}
- # pkgver=5.212.0-alpha2
- pkgrel=1
- arch=(x86_64)
- url='https://github.com/annulen/webkit/wiki'
- license=(GPL3 LGPL3 FDL custom)
- pkgdesc='Classes for a WebKit2 based implementation and a new QML API (maintained fork) (patched with pdf scale and background fixes)'
- depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen)
- makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools)
- optdepends=('gst-plugins-good: Webm codec support')
- conflicts=(qt5-webkit)
- provides=(qt5-webkit)
- source=("https://github.com/annulen/webkit/releases/download/qtwebkit-$_qtver/qtwebkit-$_qtver.tar.xz"
- qt5-webkit-pdf_scaling.patch qt5-webkit-solid_background_PDF.patch)
- sha256sums=('f8f901de567e11fc5659402b6b827eac75505ff9c5072d8e919aa306003f8f8a'
- '3118595e764bec08960518c07eb5c321d7195b23adc634ba7a50987aeec642b0'
- '339876e8dfdaabdc974d2b2f095d85691d339aef16abe97b472268dae462d0cf')
- prepare() {
- mkdir -p build
- cd qtwebkit-$_qtver
- # aleray fixes (https://github.com/annulen/webkit/compare/qtwebkit-stable...aleray:ospkit2)
- patch -p1 -i ../qt5-webkit-pdf_scaling.patch
- patch -p1 -i ../qt5-webkit-solid_background_PDF.patch
- sed -e 's|-Wundef|-Wundef -Wno-expansion-to-defined|' -i Source/cmake/WebKitHelpers.cmake
- }
- build() {
- cd build
- cmake ../qtwebkit-$_qtver \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DPORT=Qt \
- -DENABLE_TOOLS=OFF
- # -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
- # -DVMIME_INSTALL_LIBDIR=/usr/local/lib \
- # -DENABLE_WEBKIT2=OFF \
- # -DENABLE_VIDEO=OFF \
- # -DENABLE_WEB_AUDIO=OFF \
- # -DENABLE_GEOLOCATION=OFF \
- # -DENABLE_IOS_AIRPLAY=OFF \
- # -DENABLE_MINIBROWSER=OFF \
- # -DENABLE_NOTIFICATIONS=OFF \
- # -DENABLE_REMOTE_INSPECTOR=OFF \
- # -DENABLE_SPEECH_SYNTHESIS=OFF \
- # -DENABLE_TOUCH_EVENTS=OFF \
- # -DENABLE_TOUCH_SLIDER=OFF \
- # -DENABLE_TOUCH_ICON_LOADING=OFF \
- # -DENABLE_DEVICE_ORIENTATION=OFF \
- # -DENABLE_GAMEPAD=OFF \
- # -DENABLE_MEDIA_CAPTURE=OFF \
- # -DENABLE_VIBRATION=OFF
- make
- }
- package() {
- # mkdir -p "$pkgdir/etc/ld.so.conf.d"
- # install -Dm644 lib64-libriis.conf "$pkgdir/etc/ld.so.conf.d/lib64-libriis.conf"
- cd build
- make DESTDIR="$pkgdir" install
- # mv "$pkgdir"/usr/local/lib64 "$pkgdir"/usr/local/lib
- install -d "$pkgdir"/usr/share/licenses
- ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
- }
|