curl -C - -f https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc&export=download
[1] 1586
curl: (22) The requested URL returned error: 404 Not Found
wget [url]https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc&export=download[/url]
wget https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc&export=download
[1] 1708
--2015-08-17 16:50:46-- [url]https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc[/url]
Resolving docs.google.com (docs.google.com)... 2a00:1450:4009:80a::200e, 62.75.23.237, 62.75.23.211, ...
Connecting to docs.google.com (docs.google.com)|2a00:1450:4009:80a::200e|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-08-17 16:50:46 ERROR 404: Not Found.
I found the instructions on how to convert the Google Drive link into a downloadble link here
http://techathlon.com/download-shared-f … ogle-drive
but now it seems it doesn't work anymore
You use the wrong URL, the one you give use results in a 404. Maybe try this service to get the direct download link.
https://sites.google.com/site/gdocs2direct/Edit: By the way, why are you using unzip? I think makepkg will do that for you. If you don't like that, add a noextract entry.
I got this url from there
https://drive.google.com/uc?export=down … DE4LVBhNWc
and now gives 400 error with both curl and wget. About unzip: I don't know, this was used in a PKGBUILD I hacked to create mine for the first time 2 years ago.
]]>Edit: By the way, why are you using unzip? I think makepkg will do that for you. If you don't like that, add a noextract entry.
]]>*but you could do all the downloading in the prepare function like people used to do for git sources. I don't think this is a good idea though.
EDIT: I'd try out some testing here, but it seems even the urls you posted in your first post are only giving a 404 with curl or wget for me.
]]>edit: sorry, read to quickly, but both google drive and dropbox may be useful for sharing with individuals (debatable really) but neither are any good for broad distribution (edit2: Prograndy's note below about generating a real link may partially remedy this).
]]>https://docs.google.com/file/d/0Bzdfv0j … BhNWc/edit
and I managed to do it with
wget https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc&export=download
mv uc\?id\=0Bzdfv0jGv6WzeGtDMDE4LVBhNWc libregreek.oxt
The problem is that my PKGBUILD fails to download it:
# Maintainer: helix <stargr[at]gmail[dot]com>
pkgname=libreoffice-extension-libregreek
pkgver=1.0
pkgrel=4
pkgdesc='An advanced Greek & English dictionary for LibreOffice'
arch=('any')
url='https://github.com/squibbylinux/LibreGreek'
license=('BSD-3')
depends=('libreoffice')
groups=('libreoffice-extensions')
conflicts=('languagetool')
makedepends=('unzip')
source=(libreoffice.oxt::https://docs.google.com/uc?id=0Bzdfv0fijGv6WzeGtDMDE4LVBhNWc&export=download)
sha512sums=('520657aa4fbeda120a63064b1e0b0151d14363c335731952b6f1bb1c994800b815455e77a2ea1a6b3a4e16ab856a542e98d192a6025241c34e1e71bbfa5f141f')
package() {
install -dm755 $pkgdir/usr/lib/libreoffice/share/extensions
unzip -q $srcdir/libregreek.oxt -d $pkgdir/usr/lib/libreoffice/share/extensions/libregreek
}
Any suggestions?
]]>