Files
alr-repo/yandex-disk-ui/alr.sh

62 lines
1.9 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name='yandex-disk-ui'
version='0.1.0'
release='1'
desc='Graphical client for Yandex.Disk on Linux with tray icon and D-Bus integration'
desc_ru='Графический клиент для Яндекс.Диска с треем и D-Bus интеграцией'
homepage='https://gitea.plemya-x.ru/Plemya-x/yandex-disk-ui'
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('GPL-3.0-or-later')
deps=(
'qt6-qtbase'
'qt6-qtsvg'
'yandex-disk'
)
deps_alt=('qt6-base' 'qt6-svg' 'yandex-disk')
deps_arch=('qt6-base' 'qt6-svg' 'yandex-disk')
deps_debian=('qt6-base-dev' 'libqt6svg6' 'yandex-disk')
deps_fedora=("${deps[@]}")
deps_redos=("${deps_fedora[@]}")
deps_rhel=("${deps_fedora[@]}")
deps_rosa=("${deps_fedora[@]}")
build_deps=(
'cmake'
'qt6-qtbase-devel'
'qt6-qtsvg-devel'
)
build_deps_alt=('cmake' 'qt6-base-devel' 'qt6-svg-devel')
build_deps_arch=('cmake' 'qt6-base' 'qt6-svg')
build_deps_debian=('cmake' 'qt6-base-dev' 'libqt6svg6-dev' 'libgl-dev')
build_deps_fedora=("${build_deps[@]}")
build_deps_redos=("${build_deps_fedora[@]}")
build_deps_rhel=("${build_deps_fedora[@]}")
build_deps_rosa=("${build_deps_fedora[@]}")
opt_deps=('dolphin-yandex-disk-overlay: Overlay icons for Dolphin file manager')
sources=("git+https://gitea.plemya-x.ru/Plemya-x/yandex-disk-ui.git#tag=v${version}")
checksums=('SKIP')
build() {
cmake -B build -S $name \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(($(nproc) - 1))
}
package() {
install-binary build/yandex-disk-ui
install-desktop "$srcdir/$name/resources/yandex-disk-ui.desktop"
install -Dm644 "$srcdir/$name/resources/icons/yandex-disk-ui.svg" \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/yandex-disk-ui.svg"
}
files() {
files-find-bin
files-find-share "applications"
files-find-share "icons"
}