summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuildTools2015-09-21 12:08:30 -0700
committerBuildTools2015-09-21 12:08:30 -0700
commit3579a28819ae83b0e47864a8fd0f96ccc4c77d34 (patch)
tree4216180f0a6fc016f6c77556fd154b0d9ca93603
downloadaur-3579a28819ae83b0e47864a8fd0f96ccc4c77d34.tar.gz
init
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD40
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ec14e90b735
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = mingw-w64-kcrash
+ pkgdesc = Support for application crash analysis and bug report from apps (mingw-w64)
+ pkgver = 5.14.0
+ pkgrel = 1
+ url = https://projects.kde.org/projects/frameworks/kcrash
+ arch = any
+ groups = mingw-w64-kf5
+ license = LGPL
+ makedepends = mingw-w64-cmake
+ makedepends = mingw-w64-extra-cmake-modules=5.14.0
+ makedepends = kcoreaddons=5.14.0
+ depends = mingw-w64-kcoreaddons>=5.14.0
+ depends = mingw-w64-kwindowsystem>=5.14.0
+ options = staticlibs
+ options = !strip
+ options = !buildflags
+ source = http://download.kde.org/stable/frameworks/5.14/kcrash-5.14.0.tar.xz
+ md5sums = faa443c8a45cb942e2f2b2ae647c695b
+
+pkgname = mingw-w64-kcrash
+
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..be68784ec0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+pkgname=mingw-w64-kcrash
+pkgver=5.14.0
+pkgrel=1
+arch=(any)
+pkgdesc="Support for application crash analysis and bug report from apps (mingw-w64)"
+license=("LGPL")
+depends=("mingw-w64-kcoreaddons>=$pkgver" "mingw-w64-kwindowsystem>=$pkgver")
+groups=(mingw-w64-kf5)
+makedepends=(mingw-w64-cmake "mingw-w64-extra-cmake-modules=$pkgver" "kcoreaddons=$pkgver")
+options=(staticlibs !strip !buildflags)
+url="https://projects.kde.org/projects/frameworks/kcrash"
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/kcrash-${pkgver}.tar.xz")
+md5sums=('faa443c8a45cb942e2f2b2ae647c695b')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd kcrash-$pkgver
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir "build-${_arch}" && pushd "build-${_arch}"
+ ${_arch}-cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DBUILD_TESTING=OFF \
+ ..
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/${pkgname#mingw-w64-}-$pkgver/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
+ find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
+ rm -rf "$pkgdir/usr/${_arch}/share"
+ done
+}