wok annotate remind/receipt @ rev 15108

remind: fix post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 17:04:21 2013 +0000 (2013-08-14)
parents 420025dab514
children 3b4e4318134e
rev   line source
paul@3688 1 # SliTaz package receipt.
paul@3688 2
paul@3688 3 PACKAGE="remind"
paul@7058 4 VERSION="03.01.10"
paul@3688 5 CATEGORY="utilities"
jozee@4972 6 SHORT_DESC="Sophisticated calendar and alarm program."
paul@3688 7 MAINTAINER="paul@slitaz.org"
paul@3688 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@3688 9 WEB_SITE="http://www.roaringpenguin.com/products/remind"
paul@3688 10 WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL"
jozee@4972 11 TAGS="office calendar"
paul@3688 12
pascal@15108 13 DEPENDS="tk tcl tcllib xorg-libXss"
pascal@15108 14
paul@3688 15 # Rules to configure and make the package.
paul@3688 16 compile_rules()
paul@3688 17 {
paul@3688 18 cd $src
paul@3688 19 ./configure \
paul@3688 20 --prefix=/usr \
paul@3688 21 --infodir=/usr/share/info \
paul@3688 22 --mandir=/usr/share/man \
paul@3688 23 $CONFIGURE_ARGS &&
paul@3688 24 make && make DESTDIR=$PWD/_pkg install
paul@3688 25 }
paul@3688 26
paul@3688 27 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3688 28 genpkg_rules()
paul@3688 29 {
paul@3688 30 mkdir -p $fs/usr
pascal@15108 31 cp -a $install/usr/bin $fs/usr
paul@3688 32 }
paul@3688 33
paul@7827 34 post_install()
paul@7827 35 {
paul@7827 36 # Check for ~/.reminders file - needed for wyrd
pascal@15108 37 if [ ! -f $1/home/tux/.reminders -a -d $1/home/tux ]; then
paul@7827 38 echo -n "Creating config file..."
paul@7827 39 touch $1/home/tux/.reminders
paul@7827 40 chown tux:tux $1/home/tux/.reminders
paul@7827 41 status
paul@7827 42 fi
paul@7827 43 }
paul@7827 44