void-packages/srcpkgs/yandex-disk/template
2019-10-15 21:09:07 +02:00

38 lines
1.3 KiB
Bash

# Template file for 'yandex-disk'
pkgname=yandex-disk
version=0.1.5.1039
revision=1
archs="i686 x86_64"
short_desc="Console client for Yandex.Disk"
maintainer="Alexander Mamay <alexander@mamay.su>"
license="Proprietary"
homepage="https://disk.yandex.com/"
repository="nonfree"
restricted=yes
nostrip_files=yandex-disk
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
debpkgid="${pkgname}_${version}_amd64.deb"
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}"
checksum=1a6b8c6200a09bd8d2f8aacb3ebb18208b89d5b055be9bab5c3ed1a0336ac1d6
else
debpkgid="${pkgname}_${version}_i386.deb"
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}"
checksum=da195f7ddc3dcd8bf4fa08ff042860beea0759f39af74b8459be333e2b81393e
fi
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${debpkgid}
tar xzpvf data.tar.gz
gunzip usr/share/man/man1/yandex-disk.1.gz
}
do_install() {
vbin usr/bin/yandex-disk
vlicense usr/share/doc/yandex-disk/copyright
vman usr/share/man/man1/yandex-disk.1
vcopy usr/share/locale usr/share
install -m644 -D etc/bash_completion.d/yandex-disk-completion.bash \
${DESTDIR}/usr/share/bash-completion/completions/yandex-disk
sed -e "s/^\(have.*\)/\#\1/" -i ${DESTDIR}/usr/share/bash-completion/completions/yandex-disk
}