You are not logged in.

#1 2004-10-03 05:05:07

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

smartbee: another fortune cookie app with large own db

This is another console application that displays fortune cookies from it's own database. It doesn't use fortune-mod program and files. Included database has more than 100 000 different cookies.

pkgname=smartbee
pkgver=2.50b1
pkgrel=1
pkgdesc="Another Fortune Cookie program with it's own db of 100K+ cookies"
url="http://smartbee.org"
depends=('glibc')
source=(
http://smartbee.org/ftp/sb_console-2.50-b1.tar.gz 
http://smartbee.org/ftp/FunData.dat 
)
md5sums=('6df034d6ec5aebafc5b9173ada9985eb' 'd45317ad4731683694584df6b29c6439')

build() {

    cd $startdir/src/${pkgname}_console

    sed -i "s//local///share//" 
        $startdir/src/${pkgname}_console/${pkgname}_console.h

    sed -i "s//local///share//" 
        $startdir/src/${pkgname}_console/dot.SmartCookies

    sed -i "s//local///share//" 
        $startdir/src/${pkgname}_console/Makefile

    make || return 1

    install -D -m644 $startdir/src/${pkgname}_console/dot.SmartCookies 
        $startdir/pkg/usr/share/smartbee/dot.SmartCookies

    install -D -m644 $startdir/src/${pkgname}_console/dot.SmartConfig 
        $startdir/pkg/usr/share/smartbee/dot.SmartConfig

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

    install -D -m644 $startdir/src/${pkgname}_console/${pkgname}_console.1 
        $startdir/pkg/usr/man/man1/${pkgname}_console.1

    install -D -m644 $startdir/src/FunData.dat 
        $startdir/pkg/usr/share/smartbee/fundata.dat

}

Offline

Board footer

Powered by FluxBB