Package Details: onedriver 0.14.1-0

Git Clone URL: https://aur.archlinux.org/onedriver.git (read-only, click to copy)
Package Base: onedriver
Description: Native Linux filesystem for Microsoft OneDrive
Upstream URL: https://github.com/jstaf/onedriver
Licenses: GPL3
Submitter: faisalm
Maintainer: faisalm
Last Packager: faisalm
Votes: 32
Popularity: 0.181376
First Submitted: 2021-03-25 16:15 (UTC)
Last Updated: 2023-10-23 18:21 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Pinned Comments

faisalm commented on 2023-10-23 18:22 (UTC)

Updated to 0.14.1. Thanks to @maxxsom for the updated PKGBUILD.

faisalm commented on 2021-05-31 16:07 (UTC)

FWIW, I had to manually create the systemd service, after which I was able to enable/start it. YMMV.

export SERVICE_NAME=$(systemd-escape --template onedriver@.service --path $MOUNTPOINT)
cp /usr/lib/systemd/user/onedriver@.service $HOME/.config/systemd/user/$SERVICE_NAME

Latest Comments

1 2 3 4 Next › Last »

dclark16 commented on 2024-02-06 21:32 (UTC) (edited on 2024-02-07 09:07 (UTC) by dclark16)

Anyone else seeing this problem? I've checked the go.mod file and the git repo is there, but I don't profess to be an expert so any suggestions would be appreciated!


==> Starting build()...
cmd/onedriver/main.go:21:2: cannot find module providing package github.com/spf13/pflag: import lookup disabled by -mod=readonly
==> ERROR: A failure occurred in build().
    Aborting...

Edit: Sorry, this is me not reading properly! Cleaned the Go mod/cache and it worked fine.

RedSkuller commented on 2023-12-25 16:28 (UTC)

@sbeve72 @atdang The build may take a long time. It also seemed stuck for me but after some time it went forward. I suggest waiting until the process exits on its own

atdang commented on 2023-12-08 16:55 (UTC)

I have the exact same problem as @sbeve72.

I think the PKGBUILD file of the gotk3 package is not working right.

I am a newbie, so please show me how to resolve this, and point out any mistake I have made. Thank you guys.

sbeve72 commented on 2023-11-16 18:12 (UTC)

My build process is stuck on

==> Starting build()...
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function ‘_cgo_200740c87a77_Cfunc_g_binding_get_source’:
cgo-gcc-prolog:71:2: warning: ‘g_binding_get_source’ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /home/sbeve72/go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:115:23: note: declared here
  115 | GObject *             g_binding_get_source          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_200740c87a77_Cfunc_g_binding_get_target’:
cgo-gcc-prolog:107:2: warning: ‘g_binding_get_target’ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
/usr/include/glib-2.0/gobject/gbinding.h:119:23: note: declared here
  119 | GObject *             g_binding_get_target          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
github.com/gotk3/gotk3/gtk

I can't understand why and there's no error messages either, i only see mild warnings.

faisalm commented on 2023-10-23 18:22 (UTC)

Updated to 0.14.1. Thanks to @maxxsom for the updated PKGBUILD.

maxxsom commented on 2023-10-23 17:33 (UTC) (edited on 2023-10-23 17:35 (UTC) by maxxsom)

I made a quick update to the PKGBUILD to support version 0.14.1. The only lines I updated were the pkgver and sha512sums.

# Maintained by Faisal Moledina (faisal at moledina dot me)
pkgname=onedriver
pkgver=0.14.1
pkgrel=0
pkgdesc="Native Linux filesystem for Microsoft OneDrive"
arch=('x86_64')
url='https://github.com/jstaf/onedriver'
license=('GPL3')
depends=('fuse2' 'webkit2gtk')
makedepends=('pkgconf' 'go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('ff0284c960f9ad9d9e71867fc65b5ca78e3724d984fdbaec1d7dd7232d83f8335335cb779d3d53bf6dca13474b9a2fb3dd8248620d50b0c65fe91914396a094e')

build() {
  cd "$pkgname-$pkgver"

  export CGO_CPPFLAGS="${CPPFLAGS}"
  export CGO_CFLAGS="${CFLAGS}"
  export CGO_CXXFLAGS="${CXXFLAGS}"
  export CGO_LDFLAGS="${LDFLAGS}"
  export CGO_ENABLED=1

  bash cgo-helper.sh

  go build \
    -v \
    -trimpath \
    -buildmode=pie \
    -mod=readonly \
    -modcacherw \
    -ldflags "-X main.commit=$(git rev-parse HEAD) -linkmode external -extldflags \"${LDFLAGS}\"" \
    ./cmd/onedriver

  export CGO_CFLAGS="-Wno-deprecated-declarations ${CFLAGS}"

  go build \
    -v \
    -trimpath \
    -buildmode=pie \
    -mod=readonly \
    -modcacherw \
    -ldflags "-X main.commit=$(git rev-parse HEAD) -linkmode external -extldflags \"${LDFLAGS}\"" \
    ./cmd/onedriver-launcher
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir"/usr/bin/$pkgname
  install -Dm 755 $pkgname-launcher "$pkgdir"/usr/bin/$pkgname-launcher

  install -Dm 644 "pkg/resources/onedriver@.service" "$pkgdir"/usr/lib/systemd/user/onedriver@.service
  install -Dm 644 pkg/resources/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  install -Dm 644 pkg/resources/$pkgname.png "$pkgdir"/usr/share/icons/onedriver/$pkgname.png
  install -Dm 644 pkg/resources/$pkgname-128.png "$pkgdir"/usr/share/icons/onedriver/$pkgname-128.png
  install -Dm 644 pkg/resources/$pkgname.svg "$pkgdir"/usr/share/icons/onedriver/$pkgname.svg
  install -Dm 644 pkg/resources/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
}

faisalm commented on 2023-10-03 23:29 (UTC)

Updated to v0.14.0

kronikpillow commented on 2023-09-14 13:04 (UTC)

could we get this package updated please? :)

billypilgrim commented on 2022-12-20 09:52 (UTC)

Has anyone else got the bundled systemd unit file to work? I'm getting this error:

Dec 20 09:39:18 medion systemd[737]: /usr/lib/systemd/user/onedriver@.service:5: Failed to resolve unit specifiers in %f: Invalid argument
Dec 20 09:39:18 medion systemd[737]: onedriver@-home-alex-mnt-onedrive.service: Unit configuration has fatal error, unit will not be started.
Dec 20 09:39:18 medion systemd[737]: onedriver@-home-alex-mnt-onedrive.service: Cannot add dependency job, ignoring: Unit onedriver@-home-alex-mnt-onedrive.service has a bad unit file setting.
Dec 20 09:39:19 medion systemd[737]: /usr/lib/systemd/user/onedriver@.service:5: Failed to resolve unit specifiers in %f: Invalid argument

cfinnberg commented on 2022-11-21 15:46 (UTC) (edited on 2022-11-21 15:46 (UTC) by cfinnberg)

While this package gets updated, if anyone wants the 0.13.0 version, I made it work with this PKGBUILD:

# Maintained by Faisal Moledina (faisal at moledina dot me)
pkgname=onedriver
pkgver=0.13.0
pkgrel=1
pkgdesc="Native Linux filesystem for Microsoft OneDrive"
arch=('x86_64')
url='https://github.com/jstaf/onedriver'
license=('GPL3')
depends=('fuse2' 'webkit2gtk')
makedepends=('pkgconf' 'go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('aa831017c4d9612fbdea1e2fab05864f84074e6b80e7613ae739d2954e7b6e975d6a1aaaaba330c0038dae69839dcf608576a96a88797cf575791fae65673d4a')

build() {
  cd "$pkgname-$pkgver"
  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir"/usr/bin/$pkgname
  install -Dm 755 $pkgname-launcher "$pkgdir"/usr/bin/$pkgname-launcher

  install -Dm 644 "resources/onedriver@.service" "$pkgdir"/usr/lib/systemd/user/onedriver@.service
  install -Dm 644 resources/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  install -Dm 644 resources/$pkgname.png "$pkgdir"/usr/share/icons/onedriver/$pkgname.png
  install -Dm 644 resources/$pkgname-128.png "$pkgdir"/usr/share/icons/onedriver/$pkgname-128.png
  install -Dm 644 resources/$pkgname.svg "$pkgdir"/usr/share/icons/onedriver/$pkgname.svg
  install -Dm 644 resources/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
}