# Maintainer: PktSurf <smlinux@pktsurf.in>
app=rsync
version=3.2.7
build=2sml
noautoconfsite=1
homepage="https://rsync.samba.org/"
download="https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz"
desc="Tool to backup and synchronise files over a network"
requires="acl attr popt"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  CFLAGS+=" -include sys/sysmacros.h" \
  ./configure \
    --prefix= \
    --disable-locale \
    --disable-xxhash

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
84cc595340543e3e895c99ec1eba8b5ca0264340ff293db1e1e07f415cdfd781d50f869a96c3e476910a7a32a836bbacc18285f4d6ccca56a4b8dd1cadc195f2  rsync-3.2.7.tar.lz
"
