# Maintainer: Mladen Milinkovic _pkgname=kauth pkgname=mingw-w64-$_pkgname pkgver=5.76.0 pkgrel=5 pkgdesc='Abstraction to system policy and authentication features (mingw-w64)' arch=(x86_64) url='https://community.kde.org/Frameworks' license=(LGPL) depends=(mingw-w64-kcoreaddons) #mingw-w64-polkit-qt5 makedepends=(mingw-w64-extra-cmake-modules mingw-w64-qt5-tools) #mingw-w64-clang mingw-w64-sip optdepends=('python-pyqt5: for the Python bindings') groups=(mingw-w64-kf5) source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/$_pkgname-$pkgver.tar.xz"{,.sig}) sha256sums=('c277a7ab750158a56381d8f74b8ebed5205b785eca2444c65cbf59d429958a89' 'SKIP') validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { unset LDFLAGS for _arch in ${_architectures}; do mkdir "build-${_arch}" && pushd "build-${_arch}" ${_arch}-cmake \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_TESTING=OFF \ ../$_pkgname-$pkgver make popd done } package() { for _arch in ${_architectures}; do pushd "build-${_arch}" make DESTDIR="$pkgdir" install find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \; find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g popd done }