summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2016-09-14 22:10:46 +0200
committerMartchus2016-09-14 22:10:46 +0200
commite8af1dd90380da00c008a0738ee7f7a2e26b898f (patch)
treee81c79e96fe9d66d1aa91626e1ae0be3ed979d66
parent39d06c67869244f164e31ed05e1009c93c2035a4 (diff)
downloadaur-e8af1dd90380da00c008a0738ee7f7a2e26b898f.tar.gz
Update version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD43
2 files changed, 39 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2ddcdb04692..7ac33160441 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,28 @@
# Generated by mksrcinfo v8
-# Tue Apr 26 19:56:45 UTC 2016
+# Wed Sep 14 20:10:44 UTC 2016
pkgbase = mingw-w64-qtutilities
- pkgdesc = Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models. (mingw-w64).
- pkgver = 4.0.0
+ pkgdesc = Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (mingw-w64)
+ pkgver = 5.0.0
pkgrel = 1
url = https://github.com/Martchus/qtutilities
arch = any
license = GPL
makedepends = mingw-w64-gcc
makedepends = mingw-w64-cmake
+ makedepends = mingw-w64-qt5-base-static
+ makedepends = mingw-w64-qt5-svg
depends = mingw-w64-crt
depends = mingw-w64-qt5-base
depends = mingw-w64-c++utilities
+ optdepends = mingw-w64-qtutilities-doc: API documentation
+ optdepends = mingw-w64-qt5-base-static: use of static library
+ optdepends = mingw-w64-qt5-svg: use of static library
options = !buildflags
options = staticlibs
options = !strip
options = !emptydirs
- source = qtutilities-4.0.0.tar.gz::https://github.com/Martchus/qtutilities/archive/v4.0.0.tar.gz
- sha256sums = 7213b676b3b2ed1d92ffccf7cb8ebd234a5bb6d7194646143d5dc295030eca5f
+ source = qtutilities-5.0.0.tar.gz::https://github.com/Martchus/qtutilities/archive/v5.0.0.tar.gz
+ sha256sums = 3f8a6ea49b889febbb012674c773140793ad974731616b7142917ff53ed29cc0
pkgname = mingw-w64-qtutilities
diff --git a/PKGBUILD b/PKGBUILD
index 8da78049cab..7058da86fec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,38 +3,53 @@
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
-_name=qtutilities
_reponame=qtutilities
pkgname=mingw-w64-qtutilities
-pkgver=4.0.0
+_name=${pkgname#mingw-w64-}
+pkgver=5.0.0
pkgrel=1
arch=('any')
-pkgdesc="Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models. (mingw-w64)."
+pkgdesc='Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models (mingw-w64)'
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-c++utilities')
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake')
+optdepends=("$pkgname-doc: API documentation")
url="https://github.com/Martchus/${_reponame}"
-source=("qtutilities-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
-sha256sums=('7213b676b3b2ed1d92ffccf7cb8ebd234a5bb6d7194646143d5dc295030eca5f')
+source=("${_reponame}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
+sha256sums=('3f8a6ea49b889febbb012674c773140793ad974731616b7142917ff53ed29cc0')
options=(!buildflags staticlibs !strip !emptydirs)
-_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+_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') \
+ _configurations+=('static: -DENABLE_STATIC_LIBS:BOOL=ON -DDISABLE_SHARED_LIBS:BOOL=ON')
+[[ $NO_SHARED_LIBS ]] || _configurations+=('shared: -DENABLE_STATIC_LIBS:BOOL=OFF -DDISABLE_SHARED_LIBS:BOOL=OFF')
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
- # build utilities for each architecture
+ export CXXFLAGS='-O0'
+ export PREVENT_FORCING_SHARED_LIBS=ON
for _arch in ${_architectures}; do
- mkdir -p build-${_arch} && pushd build-${_arch}
- ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ../
- make
- popd
+ for _config in "${_configurations[@]}"; do
+ msg2 "Building ${_config%%: *} version for ${_arch}"
+ mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
+ echo ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
+ ${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ${_config#*: } ../
+ make
+ popd
+ done
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in ${_architectures}; do
- pushd build-${_arch}
- make DESTDIR="${pkgdir}" install-mingw-w64-strip
- popd
+ for _config in "${_configurations[@]}"; do
+ msg2 "Packaging ${_config%%: *} version for ${_arch}"
+ mkdir -p "build-${_arch}-${_config%%: *}" && pushd "build-${_arch}-${_config%%: *}"
+ make DESTDIR="${pkgdir}" install-mingw-w64-strip
+ popd
+ done
done
}