diff options
author | Nicola Murino | 2017-01-11 21:55:33 +0100 |
---|---|---|
committer | Nicola Murino | 2017-01-11 21:55:33 +0100 |
commit | ac081c74f18460fb66f2973edbbcf3b51741c228 (patch) | |
tree | 18100a4e8daf263978888ee459643d2a994834e4 /PKGBUILD | |
download | aur-ac081c74f18460fb66f2973edbbcf3b51741c228.tar.gz |
Initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b2a4be5ef90d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: drakkan <nicola.murino@gmail.com> +# Contributor: drakkan <nicola.murino@gmail.com> + +pkgname="mingw-w64-kdsoap" +pkgver=1.5.1 +pkgrel=1 +pkgdesc="Qt-based client-side and server-side SOAP component (mingw-w64)" +arch=('any') +license=('GPL3' 'LGPL' 'custom') +url='https://github.com/KDAB/KDSoap' +options=('!buildflags' 'staticlibs' '!strip') +depends=('mingw-w64-qt5-base') +makedepends=('mingw-w64-cmake') + +source=("https://github.com/KDAB/KDSoap/releases/download/kdsoap-${pkgver}/kdsoap-${pkgver}.tar.gz") +sha256sums=('fc4506a91db59aef33aadba9fa828c59047ac7bfdd13a23fe4ba7b66450d4844') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/kdsoap-${pkgver}" + sed -i 's/\-ansi//g' g++.pri + sed -i 's/add_subdirectory(examples)//g' CMakeLists.txt +} + +build() { + unset LDFLAGS + cd "$srcdir/kdsoap-$pkgver/" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make + popd + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}/kdsoap-$pkgver/build-${_arch}" + make DESTDIR="${pkgdir}" install + find "${pkgdir}/usr/${_arch}" -name "*.exe" -exec ${_arch}-strip --strip-all {} \; + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} + +# vim: ts=2 sw=2 et: |