Date: Monday, May 22, 2017 @ 16:12:16 Author: arojas Revision: 296427
archrelease: copy kde-unstable to kde-unstable-x86_64 Added: qt5-declarative/repos/kde-unstable-x86_64/PKGBUILD (from rev 296426, qt5-declarative/kde-unstable/PKGBUILD) Deleted: qt5-declarative/repos/kde-unstable-x86_64/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 58 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-05-22 16:12:03 UTC (rev 296426) +++ PKGBUILD 2017-05-22 16:12:16 UTC (rev 296427) @@ -1,52 +0,0 @@ -# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Andrea Scarpino <and...@archlinux.org> - -pkgname=qt5-declarative -_qtver=5.9.0-beta3 -pkgver=${_qtver/-/} -pkgrel=1 -arch=('i686' 'x86_64') -url='http://qt-project.org/' -license=('GPL3' 'LGPL3' 'FDL' 'custom') -pkgdesc='Classes for QML and JavaScript languages' -depends=('qt5-xmlpatterns') -makedepends=('python2' 'cmake') -groups=('qt' 'qt5') -conflicts=('qtchooser' 'qt5-declarative-render2d') -replaces=('qt5-declarative-render2d') -_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" -source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") -sha256sums=('2ca518406f902c3f812860ae0b48dc036f9111fd41f0858a02e5e91031a2f519') - -prepare() { - mkdir -p build - - # Use python2 for Python 2.x - find -name '*.pro' -o -name '*.pri' | xargs sed -i -e 's|python -c|python2 -c|g' -e 's|python \$|python2 \$|g' -} - -build() { - cd build - - export PYTHON=python2 - qmake ../${_pkgfqn} - make -} - -package() { - cd build - make INSTALL_ROOT="$pkgdir" install - - # 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} -} Copied: qt5-declarative/repos/kde-unstable-x86_64/PKGBUILD (from rev 296426, qt5-declarative/kde-unstable/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-05-22 16:12:16 UTC (rev 296427) @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=qt5-declarative +_qtver=5.9.0-beta4 +pkgver=${_qtver/-/} +pkgrel=1 +arch=('i686' 'x86_64') +url='http://qt-project.org/' +license=('GPL3' 'LGPL3' 'FDL' 'custom') +pkgdesc='Classes for QML and JavaScript languages' +depends=('qt5-xmlpatterns') +makedepends=('python2' 'cmake') +groups=('qt' 'qt5') +conflicts=('qtchooser' 'qt5-declarative-render2d') +replaces=('qt5-declarative-render2d') +_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" + qtdeclarative-5.9-fix-build.patch::"https://github.com/qt/qtdeclarative/commit/1e8f85db.patch") +sha256sums=('b466a73c7a0543efd261970156b326afdba94246cc71bf4bc51cd7b31f84c9d9' + 'f0d0108b08b28de34c659a3e93c160a450333772aff2ea215fc8818939c20407') + +prepare() { + mkdir -p build + + # Use python2 for Python 2.x + find -name '*.pro' -o -name '*.pri' | xargs sed -i -e 's|python -c|python2 -c|g' -e 's|python \$|python2 \$|g' + + # fix build + cd ${_pkgfqn} + patch -p1 -i ../qtdeclarative-5.9-fix-build.patch +} + +build() { + cd build + + export PYTHON=python2 + qmake ../${_pkgfqn} + make +} + +package() { + cd build + make INSTALL_ROOT="$pkgdir" install + + # 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} +}