Compare commits

...

1 Commits

Author SHA1 Message Date
Martchus dcb4e0b55d WIP: Add test packages for mingw-w64-qt5 packages 2017-08-25 19:21:40 +02:00
1 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,77 @@
# Maintainer: Martchus <martchus@gmx.net>
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
# NOTE: This package only serves as a test package for mingw-w64-qt5-base and mingw-w64-qt5-base-static.
# If it builds, it means that basic functionality of those packages is not broken. The package itself
# has no further use.
pkgname=mingw-w64-qt5-base-test
pkgver=5.9.1
pkgrel=1
pkgdesc='A cross-platform application and UI framework (test for mingw-w64)'
arch=('any')
url='https://www.qt.io/'
license=('GPL3' 'LGPL3' 'FDL' 'custom')
depends=('mingw-w64-qt5-base' 'mingw-w64-qt5-base-static' 'mingw-w64-pkg-config'
'mingw-w64-postgresql' 'mingw-w64-mariadb-connector-c')
groups=('mingw-w64-qt5')
optdepends=()
makedepends=('mingw-w64-gcc' 'qt5-examples')
options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
_pkgfqn="qtbase-opensource-src-${pkgver}"
source=("https://download.qt.io/official_releases/qt/${pkgver:0:3}/${pkgver}/submodules/${_pkgfqn}.tar.xz")
sha256sums=('bc9a21e9f6fff9629019fdf9f989f064751d5073c3a28dc596def92f4d4275c6')
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
prepare() {
cd "${srcdir}/${_pkgfqn}"
}
build() {
cd "${srcdir}"
declare -A _config=()
_config['static']='CONFIG+=static QTPLUGIN=qwindows'
for _arch in ${_architectures}; do
for _variant in shared static; do
local dir="mainwindows-${_arch}-${_variant}"
mkdir "${dir}" && pushd "${dir}"
${_arch}-qmake ${_config[${_variant}]} '/usr/share/doc/qt/examples/widgets/mainwindows'
make
popd
done
}
check() {
cd "${srcdir}"
for _arch in ${_architectures}; do
for _variant in shared static; do
pushd "mainwindows-${_arch}-${_variant}"
# TODO
popd
done
}
package() {
cd "${srcdir}"
for _arch in ${_architectures}; do
for _variant in shared static; do
pushd "mainwindows-${_arch}-${_variant}"
make INSTALL_ROOT="$pkgdir" install
popd
done
}