Skip to contentSkip to conversation

How automate source download from a google drive?

Buildroot Steve Kenton 3 participants 4 messages Feb 19, 2015 – Feb 20, 2015

lore
Share & tools
lore
#0 lore raw

This is a bit off the wall. I'm working with a package called tovid which you download from a google drive by clicking on a link on the wiki Darn if I can figure out how to put that into the .mk file to automate it. Look through packages directory and did not see anything obviously like it

Any thoughts would be appreciated

Steve Kenton

################################################################################
#

# tovid
#
################################################################################

TOVID_VERSION = 0.35
# I don't see how to automate downloads from a google drive http://goo.gl/o8IWR7
# The file which is downloaded has the expected name tovid-0.35.tar.gz TOVID_SITE = http://tovid.wikia.com/wiki/Installing_tovid
TOVID_LICENSE = GPLv2.0
TOVID_LICENSE_FILES = COPYING

# Must be run in source directory to avoid "error: package directory 'libtovid' does not exist" define TOVID_INSTALL_TARGET_CMDS

	bash -c "cd $(@D); ./setup.py install --root=$(TARGET_DIR) --prefix=/usr"

endef

$(eval $(generic-package))

#1 lore raw
Quoted 7 lines · Steve Kenton

This is a bit off the wall. I'm working with a package called tovid which you download from a google drive by clicking on a link on the wiki Darn if I can figure out how to put that into the .mk file to automate it. Look through packages directory and did not see anything obviously like it

Any thoughts would be appreciated

This worked:
wget --no-check-certificate '
https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
-O ~/Downloads/tovid.tar.gz

Based on this SO answer:
http://unix.stackexchange.com/a/148674/22389

You'll need to specify the full download name of the file because the wget redirect apparently doesn't get it.

<>< <>< <><
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150219/d5aae0d6/attachment.html>

#2 lore raw
Quoted 16 lines · Bryce Schober
Quoted 7 lines · Steve Kenton

This is a bit off the wall. I'm working with a package called tovid which you download from a google drive by clicking on a link on the wiki Darn if I can figure out how to put that into the .mk file to automate it. Look through packages directory and did not see anything obviously like it

Any thoughts would be appreciated

This worked:
wget --no-check-certificate '
https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
-O ~/Downloads/tovid.tar.gz

Quoted 9 lines

Based on this SO answer:
http://unix.stackexchange.com/a/148674/22389

You'll need to specify the full download name of the file because the wget redirect apparently doesn't get it.

<>< <>< <><
Bryce Schober

Wow, thank you very much. Your Google-fu is clearly superior to mine!

Steve

#3 lore raw
In reply to Bryce Schober

Hi Bryce,

Quoted 13 lines · Bryce Schober
Quoted 6 lines · Steve Kenton

This is a bit off the wall. I'm working with a package called tovid which you download from a google drive by clicking on a link on the wiki Darn if I can figure out how to put that into the .mk file to automate it. Look through packages directory and did not see anything obviously like it

Any thoughts would be appreciated

This worked:
wget --no-check-certificate '
https://docs.google.com/uc?export=download&id=0B7aAfFRdwkUmeGZTT2pua0d1Z2c'
-O ~/Downloads/tovid.tar.gz

Quoted 5 lines

Based on this SO answer:
http://unix.stackexchange.com/a/148674/22389

You'll need to specify the full download name of the file because the wget redirect apparently doesn't get it.

wget --content-disposition works for me, almost. I get 'tovid-0.35.tar.gztovid-0.35.tar.gz'.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -