diff options
author | Martchus | 2017-06-08 22:00:51 +0200 |
---|---|---|
committer | Martchus | 2017-06-08 22:00:51 +0200 |
commit | 34eb34960844db4cade8f8ce870a2654585eced1 (patch) | |
tree | c8d4942aa2dc52205015eaad32859d14bd84c4e0 | |
download | aur-34eb34960844db4cade8f8ce870a2654585eced1.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 64 |
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..37b6ab6d17a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Thu Jun 8 20:00:51 UTC 2017 +pkgbase = mingw-w64-qca-qt5 + pkgdesc = Qt Cryptographic Architecture + pkgver = 2.1.3 + pkgrel = 2 + url = https://userbase.kde.org/QCA + arch = any + license = LGPL + makedepends = mingw-w64-cmake + depends = mingw-w64-qt5-base + options = !strip + options = !buildflags + options = staticlibs + source = http://download.kde.org/stable/qca/2.1.3/src/qca-2.1.3.tar.xz + md5sums = 5019cc29efcf828681cd93164238ce26 + +pkgname = mingw-w64-qca-qt5 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9d20b077e914 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Martchus <martchus@gmx.net> +# Contributor: Antonio Rojas <arojas@archlinux.org> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> + +pkgname='mingw-w64-qca-qt5' +pkgver=2.1.3 +pkgrel=2 +pkgdesc='Qt Cryptographic Architecture' +arch=('any') +url='https://userbase.kde.org/QCA' +license=(LGPL) +depends=('mingw-w64-qt5-base') +makedepends=('mingw-w64-cmake') +options=('!strip' '!buildflags' 'staticlibs') +source=("http://download.kde.org/stable/qca/$pkgver/src/qca-$pkgver.tar.xz") +md5sums=('5019cc29efcf828681cd93164238ce26') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + true +} + +build() { + unset LDFLAGS + for _arch in ${_architectures}; do + mkdir "build-${_arch}" && pushd "build-${_arch}" + ${_arch}-cmake \ + -DCMAKE_INSTALL_PREFIX=/usr/${_arch} \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTS=OFF \ + -DQCA_INSTALL_IN_QT_PREFIX=ON \ + -DOPENSSL_INCLUDE_DIR=/usr/${_arch}/include/openssl-1.0 \ + -DOPENSSL_SSL_LIBRARY=/usr/${_arch}/lib/openssl-1.0/libssl.dll.a \ + -DOPENSSL_CRYPTO_LIBRARY=/usr/${_arch}/lib/openssl-1.0/libcrypto.dll.a \ + ../qca-$pkgver + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + pushd "build-${_arch}" + make DESTDIR="$pkgdir" install + # strip binaries + find "${pkgdir}/usr/${_arch}/lib" -maxdepth 1 -name "*.dll" -exec rm {} \; + [ "$NO_STATIC_EXECUTABLES" -a "${_config##*=}" = static -o "$NO_EXECUTABLES" ] && \ + find "${pkgdir}/usr/${_arch}" -name "*.exe" -exec rm {} \; || \ + 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 {} \; + [[ -d "${pkgdir}/usr/${_arch}/lib/qt/bin/" ]] && \ + find "${pkgdir}/usr/${_arch}/lib/qt/bin/" -exec strip --strip-all {} \; + find "${pkgdir}/usr/${_arch}/lib/" -iname "*.so.$pkgver" -exec strip --strip-unneeded {} \; + # remove manual + rm -r "${pkgdir}/usr/${_arch}/share" + popd + done +} + + |