You are not logged in.

#1 2004-08-30 21:18:33

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

powiedz pkgbuild. Polish speech synthesizer (Kadu addon)

This is a small application from kadu messenger webpage. It can be used standalone or as kadu plugin. It tries to speak Polish ;-) Funny little app.

powiedz PKGBUILD

pkgname=powiedz
pkgver=1.0
pkgrel=1
pkgdesc="Polish speech synthesizer (Kadu addon)"
url="http://kadu.net/index.php?page=download& lang=pl"
makedepends=('arts' 'esd' 'bash')
source=(http://kadu.net/download/additions/$pkgname-$pkgver.tgz)
md5sums=('e41665cc88c096473d48ff2fd32c4646')

build() {

    cd $startdir/src/$pkgname

    sed -i "s/echo -n $1/#&/" 
    $startdir/src/$pkgname/kompiluj.sh

    sed -i "/echo -n $1/,+1s/read a/#&/" 
    $startdir/src/$pkgname/kompiluj.sh
    
    sed -i "/echo -n $1/i a="t"" 
    $startdir/src/$pkgname/kompiluj.sh

    $startdir/src/$pkgname/kompiluj.sh

    install -D -m755 $startdir/src/$pkgname/powiedz 
    $startdir/pkg/usr/bin/powiedz
}

Note: I'm not 100% sure about dependencies/makedependencies. Pkgbuild needs more testing but it works for me now. Please post any suggestions here.
Important! Remove the space after & in url - I had to put it this way to prevent bad interpretation by web browser.

Offline

Board footer

Powered by FluxBB