wok-6.x annotate remind/receipt @ rev 25414
updated wordpress (5.4.1 -> 6.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 04 08:44:13 2022 +0100 (2022-08-04) |
parents | 0aa534391a15 |
children | 01119cbefbc3 |
rev | line source |
---|---|
paul@3688 | 1 # SliTaz package receipt. |
paul@3688 | 2 |
paul@3688 | 3 PACKAGE="remind" |
Hans-G?nter@25277 | 4 VERSION="04.00.01" |
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" |
Hans-G?nter@25277 | 13 WGET_URL="${WEB_SITE}download/$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@24427 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed 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 } |