summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2015-06-15 16:40:15 -0700
committerSchala2015-06-15 16:40:15 -0700
commitbb9be84a989fb26632548229335b7f9c36625ed1 (patch)
treef3e817583be6776af55ff4b27cc7aa5eb62baaf0
downloadaur-bb9be84a989fb26632548229335b7f9c36625ed1.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD41
-rw-r--r--set-AUTOSTATICPLUGINS.patch15
4 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6cfdb6a27c3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mingw-w64-extra-cmake-modules
+ pkgdesc = Extra modules and scripts for CMake (mingw-w64)
+ pkgver = 5.11.0
+ pkgrel = 1
+ url = https://projects.kde.org/projects/kdesupport/extra-cmake-modules
+ arch = any
+ license = LGPL
+ makedepends = mingw-w64-cmake
+ options = staticlibs
+ options = !strip
+ options = !buildflags
+ source = http://download.kde.org/stable/frameworks/5.11/extra-cmake-modules-5.11.0.tar.xz
+ source = set-AUTOSTATICPLUGINS.patch
+ md5sums = 0e1298c6fce735f06c789a173c0093ff
+ md5sums = 0d249754247382f3b8dda80d6833aac4
+
+pkgname = mingw-w64-extra-cmake-modules
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f46de972b6f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a5a1fb27895
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+pkgname=mingw-w64-extra-cmake-modules
+pkgver=5.11.0
+pkgrel=1
+arch=(any)
+pkgdesc="Extra modules and scripts for CMake (mingw-w64)"
+license=("LGPL")
+makedepends=(mingw-w64-cmake)
+options=(staticlibs !strip !buildflags)
+url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules"
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/extra-cmake-modules-${pkgver}.tar.xz"
+"set-AUTOSTATICPLUGINS.patch")
+md5sums=('0e1298c6fce735f06c789a173c0093ff'
+ '0d249754247382f3b8dda80d6833aac4')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare() {
+ cd extra-cmake-modules-$pkgver
+ patch -p1 -i "${srcdir}"/set-AUTOSTATICPLUGINS.patch
+}
+
+build() {
+ cd extra-cmake-modules-$pkgver
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir "build-${_arch}" && pushd "build-${_arch}"
+ ${_arch}-cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_HTML_DOCS=OFF \
+ ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/${pkgname#mingw-w64-}-$pkgver/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ done
+}
diff --git a/set-AUTOSTATICPLUGINS.patch b/set-AUTOSTATICPLUGINS.patch
new file mode 100644
index 00000000000..f0f5329b471
--- /dev/null
+++ b/set-AUTOSTATICPLUGINS.patch
@@ -0,0 +1,15 @@
+diff -urN extra-cmake-modules-1.5.0.orig/kde-modules/KDECMakeSettings.cmake extra-cmake-modules-1.5.0/kde-modules/KDECMakeSettings.cmake
+--- extra-cmake-modules-1.5.0.orig/kde-modules/KDECMakeSettings.cmake 2015-01-04 01:35:09.800389800 +0000
++++ extra-cmake-modules-1.5.0/kde-modules/KDECMakeSettings.cmake 2015-01-04 01:37:00.535144400 +0000
+@@ -151,6 +151,11 @@
+ # Since CMake 2.8.6
+ set(CMAKE_AUTOMOC ON)
+
++ # Enable autostaticplugins in MSYS2 qt5-static/cmake
++ # Since https://github.com/Alexpux/MINGW-packages/commit/e5517227778695a51bd56df07f1b05c43103ad3f
++ # and https://github.com/Alexpux/MINGW-packages/commit/aa8f86ab267446002bcbb59e1455fbdf0d9f1cde
++ set(CMAKE_AUTOSTATICPLUGINS ON)
++
+ # By default, create 'GUI' executables. This can be reverted on a per-target basis
+ # using ECMMarkNonGuiExecutable
+ # Since CMake 2.8.8