diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-03-20 21:51:58 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-03-20 21:51:58 (GMT) |
commit | 271ac76a9b6f96f91b4b18e1e20068f1b7e2a544 (patch) | |
tree | 67d0995526e4275ddb9c8354b4f3e62caede8790 /abs/core/qt5-tools/PKGBUILD | |
parent | 7d170562cfb13aaf5a122cda079f186634ab5e09 (diff) | |
download | linhes_pkgbuild-271ac76a9b6f96f91b4b18e1e20068f1b7e2a544.zip linhes_pkgbuild-271ac76a9b6f96f91b4b18e1e20068f1b7e2a544.tar.gz linhes_pkgbuild-271ac76a9b6f96f91b4b18e1e20068f1b7e2a544.tar.bz2 |
qt5: update to 5.10.1
Diffstat (limited to 'abs/core/qt5-tools/PKGBUILD')
-rw-r--r-- | abs/core/qt5-tools/PKGBUILD | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/abs/core/qt5-tools/PKGBUILD b/abs/core/qt5-tools/PKGBUILD new file mode 100644 index 0000000..f49927d --- /dev/null +++ b/abs/core/qt5-tools/PKGBUILD @@ -0,0 +1,75 @@ +# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> + +pkgname=qt5-tools +_qtver=5.10.1 +pkgver=${_qtver/-/} +pkgrel=1 +arch=('x86_64') +url='http://qt-project.org/' +license=('GPL3' 'LGPL3' 'FDL' 'custom') +pkgdesc='A cross-platform application and UI framework (Development Tools, QtHelp)' +depends=('qt5-base' 'hicolor-icon-theme') +makedepends=('qt5-declarative' 'qt5-webkit' 'vulkan-headers') +optdepends=('qt5-doc: documentation' 'qt5-webkit: for Qt Assistant') +groups=('qt' 'qt5') +conflicts=('qtchooser') +_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}" +source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" + {assistant,designer,linguist,qdbusviewer}.desktop) +sha256sums=('f1ea441e5fe138756e6de3b60ab7d8d3051799eabe85a9408c995dfd4d048a53' + '8092d6d846e39632107b14726fa112862d800e929ef10f05f2a284dbda9b53c4' + '366e18ba400068df40d26a3c944d6bd4925bf22c32f171b837a3f4e387eff019' + 'db1ad1d27ce73820b8d50291618b6f817292f15f55107274064b9ae99201069a' + 'cd94367e35f99ab85277aa95985bbde292a9cc82db2c04c4efdaed5799aa16db') + +prepare() { + mkdir -p build +} + +build() { + cd build + + qmake ../${_pkgfqn} + make +} + +package() { + cd build + make INSTALL_ROOT="${pkgdir}" install + + cd ../${_pkgfqn} + # install missing icons and desktop files + for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do + size=$(echo $(basename ${icon}) | cut -d- -f2) + install -p -D -m644 ${icon} \ + "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png" + done + + install -D -m644 src/assistant/assistant/images/assistant.png \ + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/assistant.png" + install -D -m644 src/assistant/assistant/images/assistant-128.png \ + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/assistant.png" + install -D -m644 src/designer/src/designer/images/designer.png \ + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/QtProject-designer.png" + install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png \ + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/qdbusviewer.png" + install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/qdbusviewer.png" + install -d "${pkgdir}/usr/share/applications" + install -m644 "${srcdir}"/{linguist,designer,assistant,qdbusviewer}.desktop \ + "${pkgdir}/usr/share/applications/" + + # Symlinks for backwards compatibility + for b in "${pkgdir}"/usr/bin/*; do + ln -s /usr/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-qt5 + done + + # 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' {} \; + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname} +} |