# Maintainer: Evgenii Alekseev # Contributor: Felix Yan # Contributor: Manuel Schneider pkgname=albert pkgver=0.23.0 pkgrel=3 pkgdesc="A sophisticated standalone keyboard launcher" arch=('x86_64') url="https://github.com/albertlauncher" license=('custom') depends=('hicolor-icon-theme' 'qt6-5compat' 'qt6-declarative' 'qt6-scxml' 'qt6-shadertools' 'qt6-svg') makedepends=('cmake' 'git' 'libqalculate' 'pybind11' 'python' 'qt6-tools') optdepends=('ddgr: duckduckgo search plugin' 'libarchive: documentation plugin' 'libqalculate: calculator plugin' 'python: python extension' 'python-docker: docker plugin' 'python-googletrans: google translate plugin' 'python-pylatexenc: TeX plugin' 'python-urllib3: python web plugins' 'python-virtualbox: virtualbox plugin') source=("https://github.com/albertlauncher/albert/releases/download/v${pkgver}/v${pkgver}.tar.gz") build() { mkdir -p build cd build cmake ../$pkgname \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS=ON \ -DQHOTKEY_INSTALL=OFF \ -DBUILD_APPLICATIONS_XDG=ON \ -DBUILD_CALCULATOR_QALCULATE=ON \ -DBUILD_CHROMIUM=ON \ -DBUILD_CLIPBOARD=ON \ -DBUILD_DATETIME=ON \ -DBUILD_DICTIONARY=ON \ -DBUILD_DEBUG=OFF \ -DBUILD_FILES=ON \ -DBUILD_HASH=ON \ -DBUILD_PYTHON=ON \ -DBUILD_QMLBOXMODEL=ON \ -DBUILD_SNIPPETS=ON \ -DBUILD_SSH=ON \ -DBUILD_SYSTEM=ON \ -DBUILD_TEMPLATE=OFF \ -DBUILD_TERMINAL=ON \ -DBUILD_URLHANDLER=ON \ -DBUILD_WEBSEARCH=ON \ -DBUILD_WIDGETSBOXMODEL=ON make } package() { cd build make DESTDIR="$pkgdir" install install -Dm644 "$srcdir/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } sha512sums=('8aae88d69081a1f24b52c682be9e16d8f13eac1136dfdca884ed55c7408a758fb571161c88422187070cdc05fb00a5846d6729b49a35f9c52db575a96cf87c15')