2015-08-04 20:04:32 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=qtutilities
|
2015-06-24 23:12:08 +02:00
|
|
|
pkgname=mingw-w64-qtutilities
|
2016-09-11 23:37:58 +02:00
|
|
|
_name=${pkgname#mingw-w64-}
|
2017-03-09 23:21:29 +01:00
|
|
|
pkgver=5.6.0
|
2016-09-11 23:37:58 +02:00
|
|
|
pkgrel=1
|
2015-06-24 23:12:08 +02:00
|
|
|
arch=('any')
|
2016-09-11 23:37:58 +02:00
|
|
|
pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (mingw-w64)'
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
|
|
|
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-c++utilities')
|
2017-01-30 23:03:44 +01:00
|
|
|
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'mingw-w64-qt5-tools')
|
2016-09-11 23:37:58 +02:00
|
|
|
optdepends=("$pkgname-doc: API documentation")
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2016-10-03 14:23:34 +02:00
|
|
|
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2017-03-24 12:32:22 +01:00
|
|
|
sha256sums=('f344d5ec6783c7fa76ffdb94ef40dea0ee4c95d03327be1a68ce89985f16074b')
|
2015-12-06 19:17:57 +01:00
|
|
|
options=(!buildflags staticlibs !strip !emptydirs)
|
2016-09-11 23:37:58 +02:00
|
|
|
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
|
|
|
[[ $NO_STATIC_LIBS ]] ||
|
|
|
|
makedepends+=('mingw-w64-qt5-base-static' 'mingw-w64-qt5-svg') \
|
|
|
|
optdepends+=('mingw-w64-qt5-base-static: use of static library'
|
|
|
|
'mingw-w64-qt5-svg: use of static library') \
|
2016-10-29 01:20:34 +02:00
|
|
|
_configurations='-DENABLE_STATIC_LIBS:BOOL=ON'
|
|
|
|
[[ $NO_SHARED_LIBS ]] && _configurations+=' -DDISABLE_SHARED_LIBS:BOOL=ON'
|
2015-06-24 23:12:08 +02:00
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2016-09-11 23:37:58 +02:00
|
|
|
export PREVENT_FORCING_SHARED_LIBS=ON
|
2015-12-24 16:50:30 +01:00
|
|
|
for _arch in ${_architectures}; do
|
2016-10-29 01:20:34 +02:00
|
|
|
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
|
|
|
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_configurations} ../
|
|
|
|
make
|
|
|
|
popd
|
2015-12-24 16:50:30 +01:00
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
for _arch in ${_architectures}; do
|
2016-10-29 01:20:34 +02:00
|
|
|
mkdir -p "build-${_arch}" && pushd "build-${_arch}"
|
|
|
|
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
|
|
|
popd
|
2015-12-24 16:50:30 +01:00
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|