wok view remind/receipt @ rev 24871

updated lxtask (0.1.9 -> 0.1.10)
author Hans-G?nter Theisgen
date Thu Mar 31 07:21:32 2022 +0100 (2022-03-31)
parents 0090a0579e87
children 0aa534391a15
line source
1 # SliTaz package receipt.
3 PACKAGE="remind"
4 VERSION="03.01.16"
5 CATEGORY="utilities"
6 SHORT_DESC="Sophisticated calendar and alarm program."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://dianne.skoll.ca/projects/remind/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
13 TAGS="office calendar"
15 DEPENDS="tcl tcllib tk xorg-libXss"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 mkdir -p $fs/etc/skel
42 touch $fs/etc/skel/.reminders
43 cp -a $install/usr/bin $fs/usr
44 }
46 post_install()
47 {
48 # Check for ~/.reminders file - needed for wyrd
49 nl="\\n"
50 for i in $(ls "$1/home" 2> /dev/null)
51 do
52 [ -f "$1/home/$i/.reminders" ] && continue
53 echo -en "${nl}Creating config file for $i ..."
54 touch "$1/home/$i/.reminders"
55 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.reminders"
56 status
57 done
58 }
60 post_remove()
61 {
62 rm -f "$1"/home/*/.reminders
63 }