# Template file for 'dropbox'
pkgname=dropbox
version=2026.03.20
revision=1
archs="x86_64 i686"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config automake libtool python3-gobject python3-docutils
 gdk-pixbuf-devel"
makedepends="nautilus-devel python3-devel python3-gobject-devel"
depends="libxslt python3-gobject gpgme-python3 gdk-pixbuf"
short_desc="Dropbox file sharing"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later, CC-BY-ND-3.0"
homepage="https://www.dropbox.com"
distfiles="https://github.com/dropbox/nautilus-dropbox/archive/refs/tags/v${version}.tar.gz"
checksum=1c839801bf07fbbe9a709a055bf272387e1090b4c96737d3b375cc70e2e64f15
# - The ND part of CC-BY-ND-3.0 is nonfree
# - The package is just a wrapper to download and start proprietary dropbox
# binary programs from dropbox.com, which are necessary for its function.
repository=nonfree

pre_configure() {
	autoreconf -fi
}

nautilus-dropbox_package() {
	short_desc="Dropbox nautilus plugin"
	depends="dropbox>=${version}_${revision} nautilus"
	repository=nonfree
	pkg_install() {
		vmove /usr/lib/nautilus
		vmove /usr/share/nautilus-dropbox
	}
}
