void-packages/srcpkgs/planner/template
mobinmob 1b287c7c09 planner: update to 2.7.
Also:
- add needed dependencies
- add update file.
2021-08-18 23:52:16 +02:00

35 lines
1.2 KiB
Bash

# Template file for 'planner'
pkgname=planner
version=2.7
revision=1
build_style=meson
build_helper="gir"
hostmakedepends="gettext pkg-config vala glib-devel curl"
makedepends="evolution-data-server-devel libgee08-devel granite-devel
webkit2gtk-devel libsoup-devel libpeas-devel libhandy1-devel"
depends="io.elementary.icons io.elementary.stylesheet curl"
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=cd34953867a91b2992aa4eafddc5093a695d1e6096571ade75640dddcc425d69
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
}