wok annotate remind/receipt @ rev 25466

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