# Maintainer: PktSurf <smlinux@pktsurf.in>
app=patch
version=2.7.5
build=2sml
homepage="https://www.gnu.org/software/patch/"
download="https://ftp.gnu.org/gnu/patch/patch-$version.tar.xz"
desc="Utility to apply a diff or patches file to an original file or files"
requires="attr"

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

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

build() {
  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
8fb24cf406a8a97343c2ea438544db865c48356b31965479a95014bafcee38e57c2c5112336562dd220fc753b3d98e2052c4bbb3b08af5b12764f65acc3ffd00  patch-2.7.5.tar.lz
"
