Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r2.ebuild

This file was deleted.

46 changes: 46 additions & 0 deletions net-misc/onedrivegui-bin/onedrivegui-bin-1.0.3-r3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

M_PN=OneDriveGUI

DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support."
HOMEPAGE="https://github.com/bpozdena/OneDriveGUI"

inherit desktop xdg-utils
SRC_URI="
https://github.com/bpozdena/${M_PN}/releases/download/v${PV}/${M_PN}-${PV}_fix150-x86_64.AppImage -> ${P}.AppImage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

% pkgcheck scan --net net-misc/onedrivegui-bin
net-misc/onedrivegui-bin
  DeadUrl: version 1.1.1-r2: SRC_URI: 404 Client Error: Not Found for url: https://github.com/bpozdena/OneDriveGUI/releases/download/v1.1.1/OneDriveGUI-1.1.1-x86_64.AppImage
  RedundantVersion: version 1.0.3-r3: slot(0) keywords are overshadowed by version: 1.1.1-r2

If you try to go to that URL you will find it 404. Upstream seems to have renamed it to https://github.com/bpozdena/OneDriveGUI/releases/tag/v1.1.1a (note the a at the end).

You can run pkgdev manifest -f until you are able to download all the files.

https://raw.githubusercontent.com/bpozdena/${M_PN}/refs/tags/v${PV}/src/resources/images/${M_PN}.png -> OneDriveGUI-${PV}.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to update the manifests. You can do that with:

rm Manifest && sudo pkgdev manifest

In the net-misc/onedrivegui-bin directory

Copy link
Contributor Author

@MrDuartePT MrDuartePT Mar 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that forcing manifest update some times don't update🙃

"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"

RDEPEND="
<net-misc/onedrive-2.5
!net-misc/onedrivegui
sys-fs/fuse:0
"

RESTRICT="strip test"

src_install() {
#Install binary and alias command
newbin "${DISTDIR}/${P}.AppImage" OneDriveGUI

#Icon and Desktop File
newicon "${DISTDIR}/OneDriveGUI-${PV}.png" OneDriveGUI.png
domenu "${FILESDIR}/OneDriveGUI.desktop"
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
39 changes: 0 additions & 39 deletions net-misc/onedrivegui-bin/onedrivegui-bin-1.1.1-r1.ebuild

This file was deleted.

46 changes: 46 additions & 0 deletions net-misc/onedrivegui-bin/onedrivegui-bin-1.1.1-r2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

M_PN=OneDriveGUI

DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support."
HOMEPAGE="https://github.com/bpozdena/OneDriveGUI"

inherit desktop xdg-utils
SRC_URI="
https://github.com/bpozdena/${M_PN}/releases/download/v${PV}a/${M_PN}-${PV}-x86_64.AppImage -> ${P}.AppImage
https://raw.githubusercontent.com/bpozdena/${M_PN}/refs/tags/v${PV}/src/resources/images/${M_PN}.png -> OneDriveGUI-${PV}.png
"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"

RDEPEND="
>=net-misc/onedrive-2.5
!net-misc/onedrivegui
sys-fs/fuse:0
"

RESTRICT="strip test"

src_install() {
#Install binary and alias command
newbin "${DISTDIR}/${P}.AppImage" OneDriveGUI

#Icon and Desktop File
newicon "${DISTDIR}/OneDriveGUI-${PV}.png" OneDriveGUI.png
domenu "${FILESDIR}/OneDriveGUI.desktop"
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
7 changes: 0 additions & 7 deletions net-misc/onedrivegui/files/OneDriveGUI.desktop

This file was deleted.

40 changes: 0 additions & 40 deletions net-misc/onedrivegui/files/setup-onedrivegui.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions net-misc/onedrivegui/files/setup-onedrivegui.py

This file was deleted.

46 changes: 0 additions & 46 deletions net-misc/onedrivegui/onedrivegui-1.0.3-r2.ebuild

This file was deleted.

69 changes: 69 additions & 0 deletions net-misc/onedrivegui/onedrivegui-1.0.3-r3.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

M_PN=OneDriveGUI
DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=(python3_{9..13})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop python3_9 from here, it's no longer available


DESCRIPTION="A simple GUI for OneDrive Linux client, with multi-account support."
HOMEPAGE="https://github.com/bpozdena/OneDriveGUI"
LICENSE="GPL-3"
SLOT="0"

inherit desktop distutils-r1 xdg-utils

if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/bpozdena/${M_PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/bpozdena/${M_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${M_PN}-${PV}"
fi

RESTRICT=test

RDEPEND="<net-misc/onedrive-2.5
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pyside[gui(+),webengine(+),widgets(+),${PYTHON_USEDEP}]
"

python_install() {
python_moduleinto "${M_PN}"
# Slightly inefficient as it duplicates the resource folder across
# python implementations but the project relies on those files being
# placed relative to the code.
python_domodule src/*

# The main file has to live alongside the ui module so make a
# separate script as the entry point.
#
# There is no main function and its implementation in the code is
# non-trivial so make a shell script.
local main_file="$(python_get_sitedir)/${M_PN}/${M_PN}.py"
python_newexe - "${M_PN}" <<-EOF
#!/bin/sh
exec "${EPREFIX}/usr/bin/${EPYTHON}" "${main_file}" "\${@}"
EOF
}

python_install_all() {
doicon src/resources/images/"${M_PN}.png"
make_desktop_entry "${M_PN}" "${M_PN}" "${M_PN}" \
"Network;FileTransfer;Monitor" \
"StartupNotify=true\nTerminal=false"

distutils-r1_python_install_all
}

pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
}

pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}
46 changes: 0 additions & 46 deletions net-misc/onedrivegui/onedrivegui-1.1.1-r1.ebuild

This file was deleted.

Loading