void-packages/srcpkgs/yandex-disk/template

33 lines
1.1 KiB
Bash

# Template file for 'yandex-disk'
pkgname=yandex-disk
version=0.1.6.1080
revision=1
archs="i686 x86_64"
short_desc="Console client for Yandex.Disk"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="custom:Yandex Desktop Software License Agreement"
homepage="https://disk.yandex.com/"
repository="nonfree"
restricted=yes
nostrip_files=yandex-disk
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/yandex-disk_${version}_amd64.deb"
checksum=47ba503b4dfccecc824386d67d686abe4b5356b8b546e48fce8811b5fa88a718
else
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/yandex-disk/yandex-disk_${version}_i386.deb"
checksum=9d94d0036e22509950b2acceaa9520f36d1370256d2f9b56d7696f9ff09e249b
fi
post_patch() {
vsed -e "s/^\(have.*\)/\#\1/" -i etc/bash_completion.d/yandex-disk-completion.bash
}
do_install() {
vbin usr/bin/yandex-disk
vlicense usr/share/doc/yandex-disk/copyright
vcopy usr/share/man usr/share
vcopy usr/share/locale usr/share
vcompletion etc/bash_completion.d/yandex-disk-completion.bash bash
}