# Template file for 'dropbox'
pkgname=dropbox
version=2024.04.17
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=dd10f84d7fab941f1fb70d9e538d20b10627a645fc02f1fde7e1f179dc018e0e
# - 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
	}
}
