name='yandex-disk'
version='0.1.6.1080' release='1'
This commit is contained in:
parent
3985fcb98c
commit
aae623a1b2
36
yandex-disk/alr.sh
Normal file
36
yandex-disk/alr.sh
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name='yandex-disk'
|
||||||
|
version='0.1.6.1080'
|
||||||
|
release='1'
|
||||||
|
desc='Yandex.Disk keeps your files with you at all times.'
|
||||||
|
homepage='http://disk.yandex.ru/'
|
||||||
|
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||||
|
architectures=('amd64')
|
||||||
|
license=('LicenseRef-yandex-disk')
|
||||||
|
provides=('yandex-disk')
|
||||||
|
conflicts=('yandex-disk')
|
||||||
|
|
||||||
|
deps=('glibc'
|
||||||
|
'gcc'
|
||||||
|
'gcc-libs'
|
||||||
|
'zlib')
|
||||||
|
build_deps=('bsdtar'
|
||||||
|
)
|
||||||
|
|
||||||
|
opt_deps=(
|
||||||
|
'yandex-disk-indicator: Panel indicator (GUI) for YandexDisk CLI client for Linux.'
|
||||||
|
)
|
||||||
|
|
||||||
|
sources=("https://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/yandex-disk_${version}_amd64.deb" )
|
||||||
|
checksums=('SKIP')
|
||||||
|
|
||||||
|
scripts=(
|
||||||
|
['postinstall']='postinstall.sh'
|
||||||
|
)
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir"
|
||||||
|
ar x yandex-disk_${version}_amd64.deb
|
||||||
|
bsdtar xf data.tar.gz -C "$pkgdir"
|
||||||
|
install-license "${pkgdir}/usr/share/doc/yandex-disk/copyright" ${name}/LICENSE
|
||||||
|
install-systemd "${scriptdir}/yandex-disk.service"
|
||||||
|
}
|
5
yandex-disk/postinstall.sh
Normal file
5
yandex-disk/postinstall.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
post_install() {
|
||||||
|
echo ">>> Use 'yandex-disk setup' for initial configure"
|
||||||
|
echo ">>> Use 'systemctl --user enable yandex-disk.service' for load with system start"
|
||||||
|
}
|
13
yandex-disk/yandex-disk.service
Normal file
13
yandex-disk/yandex-disk.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Yandex-Disk service
|
||||||
|
After=local-fs.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/bin/yandex-disk start -c %h/.config/yandex-disk/config.cfg
|
||||||
|
ExecReload=/usr/bin/killall -qw yandex-disk
|
||||||
|
RestartSec=30
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
Loading…
Reference in New Issue
Block a user