From 693020c4eb555043b828725445263bdeb13dfc2a Mon Sep 17 00:00:00 2001 From: Alexander Mamay Date: Wed, 11 Nov 2015 21:52:48 +0600 Subject: [PATCH] New package: yandex-disk-0.1.5.940 --- srcpkgs/yandex-disk/template | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 srcpkgs/yandex-disk/template diff --git a/srcpkgs/yandex-disk/template b/srcpkgs/yandex-disk/template new file mode 100644 index 00000000000..f42149d2828 --- /dev/null +++ b/srcpkgs/yandex-disk/template @@ -0,0 +1,40 @@ +# Template file for 'yandex-disk' +pkgname=yandex-disk +version=0.1.5.940 +revision=1 +only_for_archs="i686 x86_64" +short_desc="Console client for Yandex.Disk" +maintainer="Alexander Mamay " +license="Propietary" +homepage="https://disk.yandex.com/" +repository="nonfree" +restricted=yes + +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="5cafdaef3186815960be68dc93d7635e2461efe39e903bd9d074627d7605fd46" +else + debpkgid="${pkgname}_${version}_i386.deb" + distfiles="http://repo.yandex.ru/yandex-disk/deb/pool/main/y/${pkgname}/${debpkgid}" + checksum="6eeb6330fe230da92f6e4591635e7990815400d9e0bd51188de5eeacb5217e08" +fi + +do_extract() { + ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${debpkgid} + cd ${wrksrc} + 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 + vmkdir usr/share/locale + 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 +} +