# /bin/rc
# BUILD.rc
# slackmatic build for evolution-sharp
# clear, 2006.05.28 - 2006.05.28
# ===

PACKAGER=clear-camplear@yahoo.com

## required variable definitions:
NAME=evolution-sharp
RELEASE=0.11.1
BUILD=1cl

PROJECT=http://mirror.isp.net.au/ftp/pub/GNOME/sources/evolution-sharp/

## list of sources:
SOURCE=(
http://mirror.isp.net.au/ftp/pub/GNOME/sources/evolution-sharp/0.11/evolution-sharp-0.11.1.tar.gz
)


## required build function:
fn build {

    cd $SRC/$NAME-$RELEASE

    ## configure:
    CFLAGS=$CFLAGS ./configure \
        --prefix'='/usr \
        --sysconfdir'='/etc
        --localstatedir'='/var

    ## compile:
    @{exec make}

    ## install into $PKG:
    @{exec make install DESTDIR'='$PKG}

    ## save some other docs from source:
    MY_DOCS=(COPYING ChangeLog MAINTAINERS NEWS INSTALL README AUTHORS)
    for(f in $MY_DOCS){
        install -m 0644 $f $DOC

    }

    ## install additional files:
    install -m 0644 $CWD/slack-required  $PKG/install
    install -m 0644 $CWD/slack-readme  $PKG/install
    
    ## remove alternate languages
    rm -rf $PKG/usr/share/locale
    
    ## remove duplicate docs
    rm -rf $PKG/usr/share/doc
    
    ## create slackbuild
     mkdir -p $PKG/usr/src/slackbuilds/$NAME-$RELEASE
     @{exec cp $CWD/BUILD.rc $PKG/usr/src/slackbuilds/$NAME-$RELEASE/$NAME.Slackbuild}

 }

### EOF
