# Maintainer: Luis Martinez # Contributor: Batuhan Baserdem pkgname=maestral-qt-git pkgver=1.6.3.r0.gf4f8030 pkgrel=1 pkgdesc='Qt interface for the Maestral daemon' arch=('any') url="https://github.com/SamSchott/maestral-qt" license=('MIT') depends=("maestral>=${pkgver%.r*}" 'python-click' 'python-markdown2' 'python-packaging' 'python-pyqt6') makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') optdepends=('gnome-shell-extension-appindicator: Gnome integration') provides=("${pkgname%-git}=${pkgver%.r*}") conflicts=("${pkgname%-git}") source=("$pkgname::git+$url") sha256sums=('SKIP') pkgver() { git -C "$pkgname" describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' } build() { cd "$pkgname" python -m build --wheel --no-isolation } package() { cd "$pkgname" PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl local _site="$(python -c 'import site; print(site.getsitepackages()[0])')" install -d "$pkgdir/usr/share/licenses/$pkgname/" ln -s \ "$_site/maestral_qt-${pkgver%.r*}.dist-info/LICENSE.txt" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }