void-packages/srcpkgs/planner/template

33 lines
1.1 KiB
Bash

# Template file for 'planner'
pkgname=planner
version=2.5.7
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"
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=57076a742f6d08fac8bbfe4bf9ed3686d9138d5e41a41c19de3702202278796a
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
}