# Template file for 'onedrive'
pkgname=onedrive
version=2.5.11
revision=1
build_style=gnu-configure
configure_args="DC=ldc2 --enable-notifications --enable-completions
 --with-bash-completion-dir=/usr/share/bash-completion/completions
 --with-zsh-completion-dir=/usr/share/zsh/site-functions
 --with-fish-completion-dir=/usr/share/fish/vendor_completions.d"
hostmakedepends="ldc pkg-config"
makedepends="libcurl-devel sqlite-devel libnotify-devel"
short_desc="OneDrive Client for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/abraunegg/onedrive"
changelog="https://raw.githubusercontent.com/abraunegg/onedrive/refs/heads/master/changelog.md"
distfiles="https://github.com/abraunegg/onedrive/archive/refs/tags/v${version}.tar.gz"
checksum=7a9cfbf1cc20c8e157dd028e819ec14b9893c158494b9744708ace975076f995
nocross="uses host flags for cross compilations"

post_install() {
	vinstall config 644 usr/share/onedrive config.default
}

onedrive-d_package() {
	metapackage=yes
	depends="${sourcepkg}-${version}_${revision}"
	short_desc+=" (transitional dummy package)"
}
