pkgname=diffutils
pkgver=3.12
pkgdesc='Utility programs used for creating patch files'
arch=('x86_64')
homepage='https://www.gnu.org/software/diffutils'
license=('GPL-3.0-or-later')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("d1b18b20868fb561f77861cd90b05de4")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
