2016-02-03 20:42:14 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
# Contributor: ant32 <antreimer@gmail.com>
|
|
|
|
# Contributor: Filip Brcic <brcha@gna.org>
|
|
|
|
|
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.
|
|
|
|
|
2020-06-18 23:42:42 +02:00
|
|
|
# This file is created from PKGBUILD.sh.ep contained by the mentioned repository.
|
2019-12-29 00:08:47 +01:00
|
|
|
# Do not edit it manually! See README.md in the repository's root directory
|
|
|
|
# for more information.
|
2016-08-18 01:07:18 +02:00
|
|
|
|
2016-02-03 20:42:14 +01:00
|
|
|
_qt_module=qttranslations
|
2019-12-29 00:08:47 +01:00
|
|
|
pkgname=mingw-w64-qt5-translations
|
2022-10-31 11:17:16 +01:00
|
|
|
pkgver=5.15.7
|
2016-12-20 23:05:26 +01:00
|
|
|
pkgrel=1
|
2016-02-03 20:42:14 +01:00
|
|
|
arch=('any')
|
|
|
|
pkgdesc="A cross-platform application and UI framework (translations, mingw-w64)"
|
|
|
|
depends=('mingw-w64-qt5-base')
|
2017-01-23 21:37:13 +01:00
|
|
|
makedepends=('mingw-w64-gcc' 'mingw-w64-pkg-config' 'mingw-w64-qt5-tools')
|
2019-12-29 00:08:47 +01:00
|
|
|
license=('GPL3' 'LGPL3' 'FDL' 'custom')
|
2022-10-31 11:17:16 +01:00
|
|
|
_commit=c38edd3a5501bcd53132e1e4abb7d25a98e0e1a9
|
2022-03-07 13:23:02 +01:00
|
|
|
_basever=$pkgver
|
|
|
|
makedepends+=('git')
|
2016-02-03 20:42:14 +01:00
|
|
|
options=('!strip' '!buildflags' 'staticlibs')
|
2017-01-23 21:37:13 +01:00
|
|
|
groups=('mingw-w64-qt5')
|
|
|
|
url='https://www.qt.io/'
|
2022-03-07 13:23:02 +01:00
|
|
|
_pkgfqn=${_qt_module}
|
|
|
|
source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
|
|
|
|
sha256sums=('SKIP')
|
2016-02-03 20:42:14 +01:00
|
|
|
|
2016-08-18 01:07:18 +02:00
|
|
|
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
2016-02-03 20:42:14 +01:00
|
|
|
|
2020-06-18 23:42:42 +02:00
|
|
|
_configurations+=('CONFIG+=actually_a_shared_build CONFIG+=shared')
|
2019-12-29 00:08:47 +01:00
|
|
|
|
2022-03-07 13:23:02 +01:00
|
|
|
pkgver() {
|
|
|
|
cd $_pkgfqn
|
|
|
|
echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit`
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgfqn}"
|
|
|
|
}
|
|
|
|
|
2016-08-18 01:07:18 +02:00
|
|
|
build() {
|
2016-02-03 20:42:14 +01:00
|
|
|
cd "${srcdir}/${_pkgfqn}"
|
2019-12-29 00:08:47 +01:00
|
|
|
|
2016-02-03 20:42:14 +01:00
|
|
|
for _arch in ${_architectures}; do
|
2019-12-29 00:08:47 +01:00
|
|
|
for _config in "${_configurations[@]}"; do
|
|
|
|
msg2 "Building ${_config##*=} version for ${_arch}"
|
|
|
|
mkdir -p build-${_arch}-${_config##*=} && pushd build-${_arch}-${_config##*=}
|
|
|
|
${_arch}-qmake-qt5 ../${_qt_module}.pro ${_config} ${_additional_qmake_args}
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2016-02-03 20:42:14 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_pkgfqn}"
|
2019-12-29 00:08:47 +01:00
|
|
|
|
2016-02-03 20:42:14 +01:00
|
|
|
for _arch in ${_architectures}; do
|
2019-12-29 00:08:47 +01:00
|
|
|
for _config in "${_configurations[@]}"; do
|
|
|
|
pushd build-${_arch}-${_config##*=}
|
|
|
|
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
popd
|
|
|
|
done
|
2016-02-03 20:42:14 +01:00
|
|
|
done
|
|
|
|
}
|