From edea745aedcb6ab1e08193db07394138cbaf6a4e Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Mon, 1 Sep 2014 09:24:46 +0100 Subject: [PATCH] attica-qt5: New package KDE F4 tier 1 (WIP) --- mingw-w64-attica-qt5/PKGBUILD | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 mingw-w64-attica-qt5/PKGBUILD diff --git a/mingw-w64-attica-qt5/PKGBUILD b/mingw-w64-attica-qt5/PKGBUILD new file mode 100644 index 0000000000..027926a9a2 --- /dev/null +++ b/mingw-w64-attica-qt5/PKGBUILD @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer (ArchLinux): Andrea Scarpino +# Maintainer (MSYS2): Ray Donnelly + +_variant=-static +#_variant=-shared + +if [ "${_variant}" = "-static" ]; then + _namesuff="-static" +else + _namesuff= +fi + +_realname=attica-qt5${_namesuff} +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=5.1.0 +pkgrel=1 +arch=('any') +url='https://projects.kde.org/projects/kdesupport/attica' +pkgdesc="A Qt5 library that implements the Open Collaboration Services API (mingw-w64-qt5${_namesuff})" +license=('LGPL') +depends=("${MINGW_PACKAGE_PREFIX}-qt5${_namesuff}") +makedepends=("${MINGW_PACKAGE_PREFIX}-extra-cmake-modules") +groups=('kf5') +source=("http://download.kde.org/stable/frameworks/${pkgver}/attica-${pkgver}.tar.xz") +md5sums=('354be516e3233c2f27b23c578fbc9e89') + +prepare() { + mkdir -p build-${CARCH}${_variant} +} + +build() { + local -a extra_config + cd build-${CARCH}${_variant} + if [ "${_variant}" = "-static" ]; then + extra_config+=( -DATTICA_STATIC_BUILD=ON ) + QT5_PREFIX=${MINGW_PREFIX}/qt5-static + export PATH=${QT5_PREFIX}/bin:"$PATH" + else + QT5_PREFIX=${MINGW_PREFIX} + fi + + cmake ../attica-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=${QT5_PREFIX} \ + -DLIB_INSTALL_DIR=lib \ + -DECM_MKSPECS_INSTALL_DIR=${QT5_PREFIX} \ + -DQt5_DIR=${QT5_PREFIX}/lib/cmake/Qt5 \ + -DBUILD_TESTING=OFF \ + -DECM_DIR=${MINGW_PREFIX}/share/ECM \ + "${extra_config[@]}" \ + -G'MSYS Makefiles' --debug-output + make +} + +package() { + cd build-${CARCH}${_variant} + make DESTDIR="${pkgdir}" install +} +