* It is not optional (unlike kirigami2) when Qt Quick GUI enabled * Not tested yet
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
# 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.
|
|
|
|
# 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
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
|
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')
|
|
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="$_quick_gui"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|