34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'planner'
|
|
pkgname=planner
|
|
version=2.2.14
|
|
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"
|
|
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=e94c07967914a3ef3d847fee9f51e1169b133939a7873290fad3e5d8087ed598
|
|
|
|
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
|
|
}
|