summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMartchus2019-01-10 13:51:21 +0100
committerMartchus2019-01-10 13:51:44 +0100
commitce083a23a8e599855a745d5235e2de60c15f79b4 (patch)
treef91460bd33a2d10b5340d53ba8570ba77757e8f0 /PKGBUILD
parent56f8ddc888a0cb613a250ddc039675232ef9ac4a (diff)
downloadaur-ce083a23a8e599855a745d5235e2de60c15f79b4.tar.gz
Fix qt5-quickcontrols2 dependency
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5e09b7cc9a8..bed8ed7b05d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,6 +3,9 @@
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
+# set whether the Qt Quick GUI should be enabled: set to either ON or OFF
+_quick_gui=${PASSWORD_MANAGER_QUICK_GUI:-ON}
+
_reponame=passwordmanager
pkgname=passwordmanager
pkgver=4.0.0
@@ -12,14 +15,19 @@ pkgdesc='A simple password store using AES-256-CBC encryption via OpenSSL'
license=('GPL')
depends=('qt5-base' 'qtutilities' 'passwordfile' 'openssl' 'libxkbcommon-x11' 'desktop-file-utils' 'xdg-utils')
makedepends=('cmake' 'qt5-tools' 'mesa' 'kirigami2')
-optdepends=('kirigami2: Qt Quick GUI')
url="https://github.com/Martchus/${_reponame}"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
sha256sums=('d55bc5eb4329b7c9568246d9eeb959e64eea9909d460cd9bea12e3cb171f5570')
+# add further dependencies for the Qt Quick GUI (only kirigami2 is "pluggable")
+if [[ $_quick_gui == ON ]]; then
+ depends+=('qt5-quickcontrols2')
+ optdepends+=('kirigami2: Qt Quick GUI')
+fi
+
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DQUICK_GUI=ON
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DQUICK_GUI="$_quick_gui"
make
}