makedepends=(lz4 zstd openssl)

description="Synchronizing files over a network by sending just the differences in the files."
url="http://samba.anu.edu.au/rsync/"

packager="Grat-OS Team"
maintainer="rems"

name=rsync
version=3.3.0
release=4

source=(https://rsync.samba.org/ftp/$name/$name-$version.tar.gz
	rsync.driver )

build() {
  cd $name-$version

  ./configure --prefix=/usr \
    -mandir=/usr/share/man \
    --without-included-zlib \
    --disable-xxhash \
    --infodir=/usr/share/info \
    --disable-lz4

  make
  make DESTDIR=$PKG install

  # drivers
  mkdir -p $PKG/var/lib/pkg/drivers
  install -m 755 ..//rsync.driver \
  $PKG/var/lib/pkg/drivers/rsync
}
