# Description: Compute and apply signature-based file differences
# URL:         http://librsync.sourceforge.net/
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager:    Jukka Heino, jukka dot heino at gmail dot com
# Depends on:  librsync

name=rdiff
version=0.9.7
release=2
source=(http://download.sourceforge.net/librsync/librsync-${version}.tar.gz
  librsync.patch)

build() {
    cd librsync-$version

    patch -p1 < $SRC/librsync.patch

    ./configure --prefix=/usr
    make

    install -D -m 755 rdiff $PKG/usr/bin/rdiff
    install -D -m 644 doc/rdiff.1 $PKG/usr/man/man1/rdiff.1
}