wok-current annotate remind/receipt @ rev 20457

Add python-websocket-client
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 09 18:50:30 2018 +0200 (2018-10-09)
parents 27a62ac947e8
children 0090a0579e87
rev   line source
paul@3688 1 # SliTaz package receipt.
paul@3688 2
paul@3688 3 PACKAGE="remind"
paul@19225 4 VERSION="03.01.15"
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"
paul@3688 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@3688 10 WEB_SITE="http://www.roaringpenguin.com/products/remind"
paul@3688 11 WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL"
jozee@4972 12 TAGS="office calendar"
paul@3688 13
pascal@15108 14 DEPENDS="tk tcl tcllib xorg-libXss"
pascal@15108 15
paul@3688 16 # Rules to configure and make the package.
paul@3688 17 compile_rules()
paul@3688 18 {
paul@3688 19 cd $src
paul@3688 20 ./configure \
paul@3688 21 --prefix=/usr \
paul@3688 22 --infodir=/usr/share/info \
paul@3688 23 --mandir=/usr/share/man \
paul@3688 24 $CONFIGURE_ARGS &&
pascal@15593 25 make && make DESTDIR=$DESTDIR install
paul@3688 26 }
paul@3688 27
paul@3688 28 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3688 29 genpkg_rules()
paul@3688 30 {
pascal@17085 31 mkdir -p $fs/usr $fs/etc/skel
pascal@17085 32 touch $fs/etc/skel/.reminders
pascal@15108 33 cp -a $install/usr/bin $fs/usr
paul@3688 34 }
paul@3688 35
paul@7827 36 post_install()
paul@7827 37 {
paul@7827 38 # Check for ~/.reminders file - needed for wyrd
pascal@20319 39 nl="\\n"
pascal@18730 40 for i in $(ls "$1/home" 2> /dev/null); do
pascal@18730 41 [ -f "$1/home/$i/.reminders" ] && continue
pascal@20319 42 echo -en "${nl}Creating config file for $i ..."
pascal@18730 43 touch "$1/home/$i/.reminders"
pascal@18730 44 chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.reminders"
paul@7827 45 status
pascal@17080 46 done
paul@7827 47 }
paul@7827 48
pascal@17080 49 post_remove()
pascal@17080 50 {
pascal@18730 51 rm -f "$1"/home/*/.reminders
pascal@17080 52 }