# Maintainer: Leonardo Arena pkgname=diffutils pkgver=3.6 pkgrel=0 pkgdesc="Show differences among files" subpackages="$pkgname-doc" url="https://www.gnu.org/software/diffutils/" arch="all" license="GPL-3.0-or-later" options="!check" source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz" builddir=$srcdir/$pkgname-$pkgver prepare() { cd "$builddir" default_prepare # fix eglibc-2.16 build issue sed -i -e '/gets is a/d' \ lib/stdio.in.h } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls make } check() { cd "$builddir" make check } package() { cd "$builddir" make install DESTDIR=$pkgdir rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true } sha512sums="3c159ff1cb7c901b0a57518483566b5740ca3c45aeb8d3004089f052975481db52994cc18592c502c68b0d2a1e22f1f7830f0d8dd9a9ed86de96e28cce9f70c1 diffutils-3.6.tar.xz"