summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSchala2015-06-15 16:40:15 -0700
committerSchala2015-06-15 16:40:15 -0700
commitbb9be84a989fb26632548229335b7f9c36625ed1 (patch)
treef3e817583be6776af55ff4b27cc7aa5eb62baaf0 /PKGBUILD
downloadaur-bb9be84a989fb26632548229335b7f9c36625ed1.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
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
+}