APP=patch
VERSION=2.7.5
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/patch/'
DOWNLOAD='https://ftp.gnu.org/gnu/patch/patch-2.7.5.tar.xz'
DESC="Utility to apply a diff or patches file to an original file or files"
REQUIRES="attr"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  LDFLAGS="-static" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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