void-packages/srcpkgs/planner/template
2021-04-09 18:52:35 +02:00

33 lines
1.1 KiB
Bash

# Template file for 'planner'
pkgname=planner
version=2.6.9
revision=1
build_style=meson
build_helper="gir"
hostmakedepends="gettext pkg-config vala glib-devel"
makedepends="evolution-data-server-devel libgee08-devel granite-devel
webkit2gtk-devel libsoup-devel libpeas-devel"
short_desc="Task manager with Todoist support designed for GNU/Linux"
maintainer="linarcx <linarcx@riseup.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/alainm23/planner"
distfiles="https://github.com/alainm23/planner/archive/${version}.tar.gz"
checksum=40520c9ade68300089494b085ae4cd1ce076606b58d528df57f911fd4fdcdb74
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" evolution-data-server-devel"
fi
pre_configure() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# In musl libc there is no _NL_TIME_FIRST_WEEKDAY in langinfo.h
# thus replace Posix.NLTime.FIRST_WEEKDAY.to_string ().data[0];
# with 0; (sunday)
vsed -i src/Services/Calendar/CalendarModel.vala \
-e "s#\(int week_start =\) Posix.*#\1 0;#"
fi
}
post_install() {
vinstall data/com.github.alainm23.planner.desktop.in 644 \
usr/share/applications com.github.alainm23.planner.desktop
}