blob: 0f65712748ce35db8d5d202b1422190e9c4ec12b [file] [log] [blame] [edit]
# Maintainer (MSYS2): Michael Hansen <zrax0111@gmail.com>
# Contributer: Zach Bacon <zachbacon@vba-m.com>
_variant=-${KF5_VARIANT:-shared}
source "$(dirname ${BASH_SOURCE[0]})"/../mingw-w64-PKGBUILD-common/kde-frameworks5
_kde_f5_init_package "${_variant}" "kactivities"
pkgver=5.75.0
pkgrel=1
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
pkgdesc="Runtime and library to organize user work in separate activities (mingw-w64-qt5${_namesuff})"
license=('LGPL')
makedepends=("${MINGW_PACKAGE_PREFIX}-extra-cmake-modules>=${pkgver}"
"${MINGW_PACKAGE_PREFIX}-boost")
depends=()
_kde_f5_add_depends "${_variant}" "${MINGW_PACKAGE_PREFIX}-qt5${_namesuff}"
_kde_f5_add_depends "${_variant}" "${MINGW_PACKAGE_PREFIX}-kcoreaddons-qt5${_namesuff}>=${pkgver}"
_kde_f5_add_depends "${_variant}" "${MINGW_PACKAGE_PREFIX}-kconfig-qt5${_namesuff}>=${pkgver}"
_kde_f5_add_depends "${_variant}" "${MINGW_PACKAGE_PREFIX}-kwindowsystem-qt5${_namesuff}>=${pkgver}"
groups=('kf5')
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${_basename}-${pkgver}.tar.xz")
sha256sums=('d25fa31d9ad8bed6af1adbd589945494d1f5741e18e7bb5d67371749c6565e08')
prepare() {
mkdir -p build-${CARCH}${_variant}
}
build() {
local -a extra_config
cd build-${CARCH}${_variant}
if [ "${_variant}" = "-static" ]; then
extra_config+=( -DBUILD_SHARED_LIBS=NO )
fi
_kde_f5_build_env
cmake ../${_basename}-${pkgver} \
-DCMAKE_BUILD_TYPE=$(_kde_f5_CMAKE_BUILD_TYPE) \
"${_kde_f5_KDE_INSTALL_DIRS[@]}" \
-DBUILD_QCH=OFF \
-DBUILD_TESTING=OFF \
-DECM_DIR=${MINGW_PREFIX}/share/ECM \
"${extra_config[@]}" \
-G'MSYS Makefiles'
make
}
package() {
cd build-${CARCH}${_variant}
make DESTDIR="${pkgdir}" install
}