I applied the path. Thanks for the comments @astralc and @Funny0facer!
EDIT: I'll update the package once the AUR is available again on port 22 i.e. once the the DDoS attack is mitigated.
| Git Clone URL: | https://aur.archlinux.org/grive.git (read-only, click to copy) |
|---|---|
| Package Base: | grive |
| Description: | An open source Linux client for Google Drive with support for the new Drive REST API and partial sync |
| Upstream URL: | https://github.com/vitalif/grive2 |
| Keywords: | drive Google grive2 sync vitalif |
| Licenses: | GPL2 |
| Submitter: | mrbit |
| Maintainer: | edh |
| Last Packager: | edh |
| Votes: | 283 |
| Popularity: | 0.005224 |
| First Submitted: | 2012-04-29 22:26 (UTC) |
| Last Updated: | 2025-10-29 02:34 (UTC) |
I applied the path. Thanks for the comments @astralc and @Funny0facer!
EDIT: I'll update the package once the AUR is available again on port 22 i.e. once the the DDoS attack is mitigated.
@astralc I can confirm.
Until edh finds time, one can use the following PKGBUILD. (I also updated the pkgrel to 4)
# Maintainer: Gordian Edenhofer <gordian.edenhofer@gmail.com>
# Contributer: Giuseppe Calà <jiveaxe@gmail.com>
# Contributer: giacomogiorgianni@gmail.com
# Contributor: TingPing <tingping@tingping.se>
pkgname=grive
pkgver=0.5.3
pkgrel=4
pkgdesc="An open source Linux client for Google Drive with support for the new Drive REST API and partial sync"
arch=('i686' 'x86_64')
url='https://github.com/vitalif/grive2'
license=('GPL2')
depends=('yajl' 'curl' 'libgcrypt' 'boost-libs' 'gcc-libs' 'json-c' 'expat')
optdepends=("inotify-tools: scheduled syncs and syncs on file change events"
"cppunit: unit tests"
"binutils: backtrace and libiberty")
makedepends=('cmake' 'boost')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/vitalif/grive2/archive/v${pkgver}.tar.gz"
"syncer_compilation.patch"::"https://patch-diff.githubusercontent.com/raw/vitalif/grive2/pull/363.patch"
"fgrep_compilation.patch"::"https://patch-diff.githubusercontent.com/raw/vitalif/grive2/pull/371.patch"
"libgcript_compilation.patch"::"https://patch-diff.githubusercontent.com/raw/vitalif/grive2/pull/403.patch"
"boost_1.89_build.patch"::"https://patch-diff.githubusercontent.com/raw/vitalif/grive2/pull/410.patch"
)
sha512sums=('9185401500edbe4c45a1eea02983d747c022739aea0f09ce1518a43ae63c0c3e7f352b17f31d5510ac2de16e02e7dbbead6888812c04ee546c5ae39936d4a974'
'9c4d73105309bb25e03d692313c46c5281b8b0b1f1f3f4fb7bfdd5d167d642e966203024d675d9139ca92de72a2d796819f04e8940da9c8bbb746eb8b5ed615f'
'e2829bb1e046e1f6dd529f54423cd952d95d937f2ae34b4fce05b42dd37aeed61ec128b73a81235c10c012cd0cdc395c03409fd99daedf8e47270a7c6d1508d6'
'e3d2cf5d5546cbba69e7cfef7a944bf3230af1bde9352faea5e1c331cbeb613a319d8bd9042676768561fe2547ce2a026de0e88a9fba8f570e97062d7dd87ef5'
'4815304066f93148851558fda0f4271da68daef7b5150d7b07498265f42dea7c5a0338e5976bdb6856d5bd4e63b06c6a5e63611f8e59ccb6a06086e9ef4c0b42')
prepare() {
cd "${srcdir}/${pkgname}2-${pkgver}"
patch -Np1 -i ../syncer_compilation.patch
patch -Np1 -i ../fgrep_compilation.patch
patch -Np1 -i ../libgcript_compilation.patch
patch -Np1 -i ../boost_1.89_build.patch
}
build() {
cd "${srcdir}/${pkgname}2-${pkgver}"
rm -rf build
mkdir build
cd build
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_EXE_LINKER_FLAGS=-ljson-c ..
make
}
package() {
make -C "${srcdir}/${pkgname}2-${pkgver}/build" DESTDIR="${pkgdir}" install
}
The current version doesn't build with boost 1.89.0 because removing of boost::system - https://bbs.archlinux.org/viewtopic.php?id=309669
the build search for it in libgrive cmakelist
I see fix in this PR: https://github.com/vitalif/grive2/pull/410, try it as other patches in PKGBUILD, worked.
@Funny0facer Thanks for the comment! Done :)
Today, boost was updated and required a rebuild. I can confirm that the package could not be created without -DCMAKE_POLICY_VERSION_MINIMUM=3.5 added to the cmake command.
@edh: could you please update the PKGBUILD?
Build fails with cmake v4.0.0
CMake Error at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Adding the suggested -DCMAKE_POLICY_VERSION_MINIMUM=3.5 will allow it to build. There's a fair amount of warnings that CMake produces. I'm not sure if those were there before or not.
@Funny0facer
Thanks, that worked.
did you read and follow the chapter "Different OAuth2 client to workaround over quota and google approval issues" in the upstream readme?
Unable to authenticate.
When I run grive -a and then paste the url into the browser, I get this error:
"This app is blocked. This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access."
Pinned Comments
edh commented on 2023-10-11 23:00 (UTC)
If you encounter errors similar to
error [...] loading shared libraries, you most likely need to rebuilt the grive package. Usually no further action is needed except for forcing a rebuilt.The error is due to grive having been built against an older version of the library mentioned in the error message. The library has likely since been updated by
pacmanand grive need to be made aware of this by rebuilding it.