You are not logged in.

#1 2004-10-03 05:18:12

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

saytime: speaks current time - classic.

This is a classic old application that speaks current time. I didn't use original ACME sources because debian version includes many useful patches that make this application work better. It is possible to replace sound files with your own. For options run saytime -h. Time format string:

       A format string can be specified to control the  time  message.   Valid
       format characters are:

       %k     hour, 24-hour clock (00..23)

       %l     hour, 12-hour clock (01..12)

       %M     minutes

       %P     Introductory phrase ('The time is')

       %S     seconds

An example of a bash script which uses mpg123 to play mp3s with the current time is also available here http://www.ibiblio.org/propaganda/ I didn't make a package for it because it's really simple and there would be more patching than writing it again :-)

pkgname=saytime
pkgver=1.0
pkgrel=1
pkgdesc="Speaks the current time through your sound device"
url="http://www.acme.com/software/saytime/"
depends=('sox')
source=(http://ftp.debian.org/debian/pool/main/s/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz 
http://ftp.debian.org/debian/pool/main/s/${pkgname}/${pkgname}_${pkgver}-14.diff.gz)
md5sums=('9e251909ca6c38757a6da4f24c608b6e' 'be8895b5626a2138f165c6040cb39a49')

build() {
    
    cd $startdir/src/${pkgname}-${pkgver}.orig

    patch -p1 -i ../${pkgname}_${pkgver}-14.diff

    make || return 1

    install -D -m755 $startdir/src/${pkgname}-${pkgver}.orig/saytime 
        $startdir/pkg/usr/bin/saytime

    install -d -m755 $startdir/pkg/usr/share/saytime

    install -m644 $startdir/src/${pkgname}-${pkgver}.orig/sounds/* 
        $startdir/pkg/usr/share/saytime

}

Offline

Board footer

Powered by FluxBB