milis/talimatname/genel/q/qt5-webengine/talimat

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Bir WebKit2 tabanlı uygulama sınıfları ve yeni bir QML API'sı
# URL: http://qt-project.org/
# Paketçi: milisarge
# Gerekler: ffmpeg jsoncpp libvpx libevent libsrtp xorg-libxdamage protobuf nss gstreamer1-plugins-base libwebp xorg-libxcomposite libxslt gstreamer1-plugins-good python ruby qt5 ninja
2018-07-30 13:58:44 +02:00
# Grup: ağ geliştirme
2018-06-09 00:06:58 +02:00
isim=qt5-webengine
_isim=qtwebengine
surum=5.9.1
devir=1
#kaynak=(http://download.qt.io/official_releases/qt/5.9/$surum/submodules/$_name-opensource-src-$surum.tar.xz)
kaynak=(http://download.qt.io/official_releases/qt/${surum%.*}/$surum/single/qt-everywhere-opensource-src-$surum.tar.xz
last-commit-position.patch
clip-ft-glyph.diff
harmony-fix.diff
gzip_string.py)
derle() {
cd $SRC/qt-everywhere-opensource-src-$surum/qtwebengine/
#patch -p1 -i $SRC/last-commit-position.patch
patch -d src/3rdparty/chromium/third_party -Np3 < $SRC/clip-ft-glyph.diff
patch -Np1 -i $SRC/harmony-fix.diff
install -d build
cd build
cp -rf $SRC/gzip_string.py $SRC/qt-everywhere-opensource-src-5.9.1/qtwebengine/src/3rdparty/chromium/tools/grit/grit/format/
qmake-qt5 WEBENGINE_CONFIG+="use_proprietary_codecs use_system_ffmpeg use_system_icu" ../qtwebengine.pro
make
make INSTALL_ROOT=$PKG install
find "$PKG/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}