Date: Saturday, June 4, 2016 @ 10:04:42 Author: arojas Revision: 268897
archrelease: copy kde-unstable to kde-unstable-i686, kde-unstable-x86_64 Added: qt5-declarative/repos/kde-unstable-i686/ qt5-declarative/repos/kde-unstable-i686/PKGBUILD (from rev 268896, qt5-declarative/kde-unstable/PKGBUILD) qt5-declarative/repos/kde-unstable-x86_64/ qt5-declarative/repos/kde-unstable-x86_64/PKGBUILD (from rev 268896, qt5-declarative/kde-unstable/PKGBUILD) ------------------------------+ kde-unstable-i686/PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++ kde-unstable-x86_64/PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) Copied: qt5-declarative/repos/kde-unstable-i686/PKGBUILD (from rev 268896, qt5-declarative/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-i686/PKGBUILD (rev 0) +++ kde-unstable-i686/PKGBUILD 2016-06-04 08:04:42 UTC (rev 268897) @@ -0,0 +1,51 @@ +# $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.7.0-rc +pkgver=${_qtver/-/} +pkgrel=1 +arch=('i686' 'x86_64') +url='http://qt-project.org/' +license=('GPL3' 'LGPL' 'FDL' 'custom') +pkgdesc='Classes for QML and JavaScript languages' +depends=('qt5-xmlpatterns') +makedepends=('python2' 'cmake') +groups=('qt' 'qt5') +_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +md5sums=('d2dc821e89904f2513ab3155d2681a11') + +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 + + # Useful symlinks + install -d "$pkgdir"/usr/bin + for b in "$pkgdir"/usr/lib/qt/bin/*; do + ln -s /usr/lib/qt/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 268896, qt5-declarative/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-x86_64/PKGBUILD (rev 0) +++ kde-unstable-x86_64/PKGBUILD 2016-06-04 08:04:42 UTC (rev 268897) @@ -0,0 +1,51 @@ +# $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.7.0-rc +pkgver=${_qtver/-/} +pkgrel=1 +arch=('i686' 'x86_64') +url='http://qt-project.org/' +license=('GPL3' 'LGPL' 'FDL' 'custom') +pkgdesc='Classes for QML and JavaScript languages' +depends=('qt5-xmlpatterns') +makedepends=('python2' 'cmake') +groups=('qt' 'qt5') +_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +md5sums=('d2dc821e89904f2513ab3155d2681a11') + +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 + + # Useful symlinks + install -d "$pkgdir"/usr/bin + for b in "$pkgdir"/usr/lib/qt/bin/*; do + ln -s /usr/lib/qt/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} +}