pakur.sh 695 B

123456789101112131415161718192021
  1. cd qtbase-everywhere-src-$surum
  2. make INSTALL_ROOT="${PKG}" install
  3. install -Dm644 LICENSE* -t "$PKG"/usr/share/licenses/$pkgbase
  4. # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  5. find "${PKG}/usr/lib" -type f -name '*.prl' \
  6. -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
  7. # Fix wrong qmake path in pri file
  8. sed -i "s|${SRC}/qtbase-everywhere-src-$surum|/usr|" \
  9. "${PKG}"/usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri
  10. # Symlinks for backwards compatibility
  11. for b in "${PKG}"/usr/bin/*; do
  12. ln -s $(basename $b) "${PKG}"/usr/bin/$(basename $b)-qt5
  13. done
  14. install -d -m755 "$PKG"/usr/include/qtxcb-private
  15. cp -r src/plugins/platforms/xcb/*.h "$PKG"/usr/include/qtxcb-private/