* Remove `mesa` as dependency; `qt5-base` and `qt6-base` both depend on it and none of the projects depend on it directly; official Qt-based packages like `qtcreator` also don't depend on `mesa` * Add `libx11` as dependency of `qtutilities` and variants as it is actually used directly by those packages for the capslock detection (even though that feature was broken for quite some time)
46 lines
1.5 KiB
Bash
46 lines
1.5 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.1.12
|
|
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' 'libqtutilities.so' 'libpasswordfile.so' 'libc++utilities.so' 'openssl'
|
|
'libxkbcommon-x11' 'desktop-file-utils' 'xdg-utils')
|
|
makedepends=('cmake' 'ninja' 'qt5-tools' 'kirigami2')
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('3ccac8a8adc156bbb1fb7995efae7f6f9f816fd706933abe2d5040cc47347a2a')
|
|
|
|
# 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 \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
-DQUICK_GUI="$_quick_gui" \
|
|
-DBUILTIN_TRANSLATIONS:BOOL=ON \
|
|
-DBUILTIN_TRANSLATIONS_OF_QT:BOOL=OFF \
|
|
.
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
DESTDIR="${pkgdir}" ninja install
|
|
}
|