dropbox
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
pkgbase = dropbox-cli
|
||||
pkgdesc = Command line interface for Dropbox
|
||||
pkgver = 2024.04.17
|
||||
pkgrel = 2
|
||||
url = https://www.dropbox.com
|
||||
arch = any
|
||||
license = GPL-3.0-or-later
|
||||
makedepends = gdk-pixbuf2
|
||||
depends = dropbox
|
||||
depends = python-gobject
|
||||
optdepends = gtk3: Dropbox update GUI
|
||||
optdepends = python-gpgme: verify binary signature
|
||||
source = https://linux.dropbox.com/packages/nautilus-dropbox-2024.04.17.tar.bz2
|
||||
source = dropboxd-fallback.patch
|
||||
sha256sums = a6a098cf16aa4747f40816ac793d59e37e8ae3b7080d0b30611d6c2b8663f2c1
|
||||
sha256sums = 711ed63c6dfccfd05c6e9abaa291be9ac3c3909e84f788f568cb44dee2d48229
|
||||
|
||||
pkgname = dropbox-cli
|
||||
@@ -0,0 +1,9 @@
|
||||
dropbox-cli-*.pkg.tar.zst
|
||||
dropbox-cli-*.pkg.tar.xz
|
||||
dropbox-cli-*.py
|
||||
dropbox-cli-*.log
|
||||
PKGBUILD-namcap.log
|
||||
pkg/
|
||||
src/
|
||||
!.omarchy/
|
||||
!.omarchy/**
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"source": "aur",
|
||||
"release_ring": "fast"
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
# Maintainer: Muflone http://www.muflone.com/contacts/english/
|
||||
# Contributor: Fredy García <frealgagu at gmail dot com>
|
||||
# Contributor: Joel Teichroeb <joel@teichroeb.net>
|
||||
# Contributor: Matthias Maennich < arch .at. maennich.net >
|
||||
# Contributor: bruce < b_a_g99 .at. hotmail.com >
|
||||
# Contributor: carstene1ns <arch carsten-teibes de>
|
||||
|
||||
pkgname=dropbox-cli
|
||||
pkgver=2024.04.17
|
||||
pkgrel=2
|
||||
pkgdesc="Command line interface for Dropbox"
|
||||
arch=("any")
|
||||
url="https://www.dropbox.com"
|
||||
license=("GPL-3.0-or-later")
|
||||
makedepends=("gdk-pixbuf2")
|
||||
depends=("dropbox" "python-gobject")
|
||||
optdepends=("gtk3: Dropbox update GUI"
|
||||
"python-gpgme: verify binary signature")
|
||||
source=("https://linux.dropbox.com/packages/nautilus-dropbox-${pkgver}.tar.bz2"
|
||||
"dropboxd-fallback.patch")
|
||||
sha256sums=('a6a098cf16aa4747f40816ac793d59e37e8ae3b7080d0b30611d6c2b8663f2c1'
|
||||
'711ed63c6dfccfd05c6e9abaa291be9ac3c3909e84f788f568cb44dee2d48229')
|
||||
|
||||
prepare() {
|
||||
cd "nautilus-dropbox-${pkgver}"
|
||||
# Patch to point to /opt/dropbox/dropboxd in case of local user does not exist
|
||||
patch -Np1 -i "${srcdir}/dropboxd-fallback.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "nautilus-dropbox-${pkgver}"
|
||||
python3 build_dropbox.py "${pkgver}" "/usr/share/applications" < "dropbox.in" > "${pkgname}"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "nautilus-dropbox-${pkgver}"
|
||||
install -m 755 -D "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
diff --git a/dropbox.in b/dropbox.in
|
||||
index 36a8604..2748194 100644
|
||||
--- a/dropbox.in
|
||||
+++ b/dropbox.in
|
||||
@@ -74,6 +74,12 @@ DROPBOX_DIST_PATH = "%s/.dropbox-dist" % PARENT_DIR
|
||||
DROPBOXD_PATH = os.path.join(DROPBOX_DIST_PATH, "dropboxd")
|
||||
DESKTOP_FILE = "/usr/share/applications/dropbox.desktop"
|
||||
|
||||
+# DROPBOX_DIST_PATH and DROPBOXD_PATH are reassigned to /opt/dropbox and /opt/dropbox/dropboxd if path does not exist
|
||||
+DROPBOX_INSTALL_PATH = "/opt/dropbox"
|
||||
+if not os.path.exists(DROPBOXD_PATH) and os.path.exists(os.path.join(DROPBOX_INSTALL_PATH, "dropboxd")):
|
||||
+ DROPBOX_DIST_PATH = DROPBOX_INSTALL_PATH
|
||||
+ DROPBOXD_PATH = os.path.join(DROPBOX_DIST_PATH, "dropboxd")
|
||||
+
|
||||
enc = locale.getpreferredencoding()
|
||||
|
||||
# Available from https://linux.dropbox.com/fedora/rpm-public-key.asc
|
||||
Reference in New Issue
Block a user