I updated now to 1.8.0 and it builds fine at the moment. I also supplied the package to AUR 4 (https://aur4.archlinux.org/packages/gdrive/)
Search Criteria
Package Details: gdrive 1.8.0-1
Package Actions
| Package Base: | gdrive |
|---|---|
| Description: | Command line utility for uploading and downloading single files to your Google Drive |
| Upstream URL: | https://github.com/prasmussen/gdrive |
| Category: | network |
| Licenses: | |
| Submitter: | kleinph |
| Maintainer: | kleinph |
| Last Packager: | kleinph |
| Votes: | 5 |
| First Submitted: | 2015-03-24 10:07 |
| Last Updated: | 2015-06-10 18:55 |
Required by (0)
Sources
Latest Comments
Comment by kleinph
Comment by kleinph
Yeah, the first PKGBUILD built fine, because it only copies a prebuilt binary to its destination.
The git version builds fine, because the author adapts the source to changes in the used libs. My package intends to build a fixed version which is tagged in the source, but there is AFAIK no info which lib version are needed (and also no way to restrict to those version).
But I see it is outdated anyway, maybe 1.8 will build fine.
Comment by willemw
Is the current PKGBUILD correct? I think the old PKGBUILD you refer to is installing the correct version (i.e. "pkgver"): the correct version of gdrive, including the correct versions of the dependent source code projects/repos.
Package gdrive-git seems to build just fine. Could that mean there are no dependency issues?
Comment by kleinph
The package is not building at the moment, due to dependency issues (this seems to be a real problem in go). I filed a issue for that (https://github.com/prasmussen/gdrive/issues/64) upstream.
At the meantime you can use the old PKGBUILD (https://github.com/kleinph/gdrive-pgkbuild/commit/e5d5e93a5e4935c6be24d85bf875554a9f66d5f7)
Comment by kleinph
@willemw
ad 1) yep will use the github releases feature
ad 2) good point. It seems that go has no real dependency management here or is there one I just dont know?
Comment by willemw
I've created a git version of gdrive: https://aur.archlinux.org/packages/gdrive-git/
About your pastebin example:
- Could use something like 'source=("http://SERVER/$pkgname/$pkgname-$pkgver.tar.gz")' to download the source code.
- 'go get' also downloads from the other dependent source code repos (but always the latest versions? Is that OK?)
Comment by kleinph
I would go with something like this: http://pastebin.com/gGmfDYue
Comment by kleinph
Hm, I don't think this is a good PKGBUILD. Anyway arch linux has guidelines for go packes https://wiki.archlinux.org/index.php/Go_package_guidelines. So I will do a new PKGBUILD based on this.
Comment by greyltc
I think this is a good template: https://aur.archlinux.org/packages/dr/drive/PKGBUILD
Comment by kleinph
That would be nice. Thanks!
Comment by greyltc
Maybe I can help to fix it up.
Comment by kleinph
I am not sure. It is not that hard to setup a proper build process?
Comment by greyltc
Do you intend to leave it this way?
Comment by kleinph
@greyltc because I was lazy. This is not someones google drive. This are the binaries which are linked from the official git repo.
Comment by greyltc
Why is this PKGBUILD downloading prebuilt binaries from someone's google drive account and not performing the build its self?
The source code is available.