wok view remind/receipt @ rev 25710

typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 25 12:42:06 2024 +0000 (4 months ago)
parents 2f18a0e99af7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="remind"
4 VERSION="04.00.03"
5 CATEGORY="utilities"
6 TAGS="office calendar"
7 SHORT_DESC="Sophisticated calendar and alarm program."
8 MAINTAINER="paul@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://dianne.skoll.ca/projects/remind/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://salsa.debian.org/dskoll/remind/-/archive/master/$TARBALL"
15 DEPENDS="gcc83-lib-base tcl tcllib tk xorg-libXss"
16 BUILD_DEPENDS="gcc83"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - 'https://salsa.debian.org/dskoll/remind/-/tags?sort=updated_desc' 2>/dev/null | \
22 sed '/\/tags\//!d;s|.*/tags/||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 CC=gcc-83 \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install DESTDIR=$DESTDIR
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/etc/skel
43 touch $fs/etc/skel/.reminders
44 cook_copy_folders bin
45 }
47 post_install()
48 {
49 # Check for ~/.reminders file - needed for wyrd
50 nl="\\n"
51 for i in $(ls "$1/home" 2> /dev/null)
52 do
53 [ -f "$1/home/$i/.reminders" ] && continue
54 echo -en "${nl}Creating configuration file for $i ..."
55 touch "$1/home/$i/.reminders"
56 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.reminders"
57 status
58 done
59 }
61 post_remove()
62 {
63 rm -f "$1"/home/*/.reminders
64 }