39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'yandex-disk'
|
|
pkgname=yandex-disk
|
|
version=0.1.6.1074
|
|
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
|
|
debpkgid="${pkgname}_${version}_amd64.deb"
|
|
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}"
|
|
checksum=dddc57d2dbb1a68d8aef67450d138a9b7c7975438c10b6bbf5a0214e7fd47ecd
|
|
else
|
|
debpkgid="${pkgname}_${version}_i386.deb"
|
|
distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}"
|
|
checksum=b0b0d25a966c1c48aef87bb5bceeb41d2150859cb64896fe07c765ad73bdf242
|
|
fi
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${debpkgid}
|
|
bsdtar 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
|
|
vsed -e "s/^\(have.*\)/\#\1/" -i ${DESTDIR}/usr/share/bash-completion/completions/yandex-disk
|
|
}
|