diff options
author | Martchus | 2019-07-15 11:22:19 +0200 |
---|---|---|
committer | Martchus | 2019-07-15 11:22:19 +0200 |
commit | 21b61f9752047778eb821bc88e35bb0736f21dc0 (patch) | |
tree | a2030f240d865c288c352f860e3ad3f7a1934a5d | |
download | aur-21b61f9752047778eb821bc88e35bb0736f21dc0.tar.gz |
Update to 5.60.0
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b92a486ff0b7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = mingw-w64-kirigami2 + pkgdesc = A QtQuick based components set (mingw-w64) + pkgver = 5.60.0 + pkgrel = 1 + url = https://community.kde.org/Frameworks + arch = any + license = LGPL + makedepends = mingw-w64-gcc + makedepends = mingw-w64-cmake + makedepends = mingw-w64-extra-cmake-modules + makedepends = mingw-w64-qt5-tools + makedepends = mingw-w64-qt5-svg + makedepends = kpackage + depends = mingw-w64-crt + depends = mingw-w64-qt5-quickcontrols + depends = mingw-w64-qt5-quickcontrols2 + depends = mingw-w64-qt5-graphicaleffects + options = !buildflags + options = staticlibs + options = !strip + options = !emptydirs + source = https://download.kde.org/stable/frameworks/5.60/kirigami2-5.60.0.tar.xz + source = https://download.kde.org/stable/frameworks/5.60/kirigami2-5.60.0.tar.xz.sig + validpgpkeys = 53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB + sha256sums = f016481d393041513dda11345e9ee84723587fa4be9f17391ed1a5868477e153 + sha256sums = SKIP + +pkgname = mingw-w64-kirigami2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a093b30bca97 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Martchus <martchus@gmx.net> +# Contributor (maintains regular package): Antonio Rojas <arojas@archlinux.org> + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_pkgname=kirigami2 +pkgname=mingw-w64-$_pkgname +pkgver=5.60.0 +pkgrel=1 +pkgdesc="A QtQuick based components set (mingw-w64)" +arch=('any') +url='https://community.kde.org/Frameworks' +license=(LGPL) +depends=(mingw-w64-crt mingw-w64-qt5-quickcontrols mingw-w64-qt5-quickcontrols2 mingw-w64-qt5-graphicaleffects) +makedepends=(mingw-w64-gcc mingw-w64-cmake mingw-w64-extra-cmake-modules mingw-w64-qt5-tools mingw-w64-qt5-svg kpackage) +source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/$_pkgname-$pkgver.tar.xz"{,.sig}) +sha256sums=('f016481d393041513dda11345e9ee84723587fa4be9f17391ed1a5868477e153' + 'SKIP') +validpgpkeys=('53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB') # David Faure <faure@kde.org> +options=(!buildflags staticlibs !strip !emptydirs) + +_architectures='i686-w64-mingw32 x86_64-w64-mingw32' + +prepare() { + cd $_pkgname-$pkgver + for _arch in ${_architectures}; do + mkdir -p "build-${_arch}" + done +} + +build() { + cd $_pkgname-$pkgver + for _arch in ${_architectures}; do + pushd "build-${_arch}" + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_TESTING=OFF \ + -DBUILD_QCH=OFF \ + .. + make + popd + done +} + +package() { + cd $_pkgname-$pkgver + for _arch in ${_architectures}; do + pushd "build-${_arch}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}/usr/${_arch}/share/" + find "${pkgdir}/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip --strip-all {} \; + find "${pkgdir}/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; + find "${pkgdir}/usr/${_arch}" -name '*.a' -exec ${_arch}-strip -g {} \; + popd + done +} |