# Description:  mailbox synchronizer
# URL:  http://isync.sourceforge.net/
# Maintainer:  z3bra <dev at z3bra dot org>
# Depends on: p5-timedate p5-parse-yapp

name=mbsync
version=git-65cd442
release=2
source=()

gitsource=git://git.code.sf.net/p/isync/isync

build() {
    cd $PKGMK_SOURCE_DIR

    if cd $name; then
        git reset --hard
        git pull $gitsource
    else
        git clone $gitsource $name
        cd $name
    fi

    git checkout $sversion

    # Don't build the changelog
    > ChangeLog
    autoreconf -fi
    ./configure --prefix=/usr --mandir=/usr/share/man --disable-compat
    make
    make DESTDIR=$PKG install

    rm -rf $PKG/usr/share
}
