void-packages/srcpkgs/onedrive-d/template
2018-08-18 05:15:32 +02:00

27 lines
928 B
Bash

# Template file for 'onedrive-d'
pkgname=onedrive-d
version=1.1.1
revision=1
wrksrc="onedrive-${version}"
build_style=gnu-makefile
hostmakedepends="dmd"
makedepends="libcurl-devel sqlite-devel"
short_desc="Free Client for OneDrive on Linux"
maintainer="ibrokemypie <ibrokemypie@bastardi.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/skilion/onedrive"
distfiles="https://github.com/skilion/onedrive/archive/v${version}.tar.gz"
checksum=fb51c81ec95c28f3fe3b29e3b7f915e30161bd5f4b14bb53ae5c2233cc1e92e9
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/3910/steps/shell_3/logs/stdio"
pre_build() {
printf 'v%s\n' "$pkgver" > version
sed -i '/^onedrive:/ s/version //' Makefile
sed -i 's/std\.c\./core.stdc./g' src/sqlite.d
}
post_install() {
vinstall config 644 usr/share/onedrive config.default
# We don't care about the systemd service installed here.
rm -rf ${DESTDIR}/usr/lib/systemd
}