# Maintainer: Alexey Pavlov pkgname=diffutils pkgver=3.10 pkgrel=1 pkgdesc="Utility programs used for creating patch files" arch=('i686' 'x86_64') url="https://www.gnu.org/software/diffutils" msys2_references=( "anitya: 436" "cpe: cpe:2.3:a:gnu:diffutils" ) license=('spdx:GPL-3.0-or-later') depends=('sh' 'libiconv' 'libintl') makedepends=('autotools' 'gcc' 'gettext-devel' 'libiconv-devel') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}) sha256sums=('90e5e93cc724e4ebe12ede80df1634063c7a855692685919bfe60b556c9bd09e' 'SKIP') validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering prepare() { cd ${srcdir}/${pkgname}-${pkgver} autoreconf -fiv } build() { cd ${srcdir}/${pkgname}-${pkgver} # make sure tests are running OK sed -i "s/mkdir -m 0700/mkdir /" tests/init.sh local CYGWIN_CHOST="${CHOST/-msys/-cygwin}" ./configure \ --build=${CYGWIN_CHOST} \ --prefix=/usr \ --without-libiconv-prefix \ --without-libintl-prefix make } check() { cd ${srcdir}/${pkgname}-${pkgver} make check || true } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }