# Maintainer: Evgenii Alekseev # Contributor: Felix Yan # Contributor: Manuel Schneider pkgname=albert pkgver=0.22.9 pkgrel=1 pkgdesc="A sophisticated standalone keyboard launcher" arch=('x86_64') url="https://github.com/albertlauncher" license=('GPL') depends=('hicolor-icon-theme' 'qt6-5compat' 'qt6-declarative' 'qt6-scxml' 'qt6-shadertools' 'qt6-svg') makedepends=('cmake' 'git' 'libqalculate' 'pybind11' 'python') 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=("mirrors/albert::git+https://github.com/albertlauncher/albert.git#tag=v${pkgver}" "mirrors/plugins::git+https://github.com/albertlauncher/plugins.git" "mirrors/python::git+https://github.com/albertlauncher/python.git" "mirrors/qhotkey::git+https://github.com/Skycoder42/QHotkey.git#tag=1.5.0") sha512sums=('SKIP' 'SKIP' 'SKIP' 'SKIP') prepare() { mkdir -p build cd "$srcdir/albert" git submodule init git config submodule.plugins.url "$srcdir/plugins" git -c protocol.file.allow=always submodule update plugins git config submodule.lib/QHotkey.url "$srcdir/qhotkey" git -c protocol.file.allow=always submodule update lib/QHotkey cd "$srcdir/albert/plugins" git submodule init git config submodule.python/plugins.url "$srcdir/python" git -c protocol.file.allow=always submodule update python/plugins } 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_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 # remove some trash rm -r "$pkgdir/usr/share/albert/python/plugins/.archive" rm -r "$pkgdir/usr/share/albert/python/plugins/.git"* } # vim:set ts=2 sw=2 et: