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