# Template file for 'onedrive'
pkgname=onedrive
version=2.4.25
revision=2
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="selfisekai <laura@selfisekai.rocks>"
license="GPL-3.0-or-later"
homepage="https://github.com/abraunegg/onedrive"
changelog="https://raw.githubusercontent.com/abraunegg/onedrive/master/CHANGELOG.md"
distfiles="https://github.com/abraunegg/onedrive/archive/v${version}.tar.gz"
checksum=e7d782ea7d1973b6b578899a84c4f90ba69302263b4be30d80a363ba8ba27eb3
nocross="uses host flags for cross compilations"

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

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