app=rsync
version=3.1.2
build=1sml
sm_noautoconfsite=1
homepage="https://rsync.samba.org/"
download="https://download.samba.org/pub/rsync/src/rsync-3.1.2.tar.gz"
desc="Tool to backup and synchronise files over a network"
requires="acl attr popt"

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

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
  
  CFLAGS="$CFLAGS -include sys/sysmacros.h" \
  ./configure \
    --prefix="" \
    --disable-locale 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0d608e8b4dd52a0944bbc5b3bf4bb53601fca036f4eeeb0132ca190abe8a1d8116ed30540f4d832376f8db184f1246c80e8201d8026c60e3f5e9e0553fdf8bb8  rsync-3.1.2.tar.lz
"
