summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2015-06-15 17:16:27 -0700
committerSchala2015-06-15 17:16:27 -0700
commita3467dce6c7bfd410c4ebb363ecdf6b1f137ffb3 (patch)
tree8c7154b47b58c37fda2e429f2d976253d7a112c1
downloadaur-a3467dce6c7bfd410c4ebb363ecdf6b1f137ffb3.tar.gz
init
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD38
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..26f70201a88
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = mingw-w64-karchive
+ pkgdesc = Qt 5 addon providing access to numerous types of archives (mingw-w64)
+ pkgver = 5.11.0
+ pkgrel = 1
+ url = https://projects.kde.org/projects/frameworks/karchive
+ arch = any
+ license = LGPL
+ makedepends = mingw-w64-cmake
+ makedepends = mingw-w64-extra-cmake-modules
+ depends = mingw-w64-qt5-base
+ depends = mingw-w64-bzip2
+ depends = mingw-w64-xz
+ options = staticlibs
+ options = !strip
+ options = !buildflags
+ source = http://download.kde.org/stable/frameworks/5.11/karchive-5.11.0.tar.xz
+ md5sums = a9044a93fc88324d97108d69b07f7851
+
+pkgname = mingw-w64-karchive
+
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..bb0cc5f1866
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+pkgname=mingw-w64-karchive
+pkgver=5.11.0
+pkgrel=1
+arch=(any)
+pkgdesc="Qt 5 addon providing access to numerous types of archives (mingw-w64)"
+license=("LGPL")
+depends=(mingw-w64-qt5-base mingw-w64-bzip2 mingw-w64-xz)
+makedepends=(mingw-w64-cmake mingw-w64-extra-cmake-modules)
+options=(staticlibs !strip !buildflags)
+url="https://projects.kde.org/projects/frameworks/karchive"
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/karchive-${pkgver}.tar.xz")
+md5sums=('a9044a93fc88324d97108d69b07f7851')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd karchive-$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
+ done
+}