# Maintainer: Leonardo Arena pkgname=ddrescue pkgver=1.27 pkgrel=1 pkgdesc="Data recovery tool for block devices with errors" url="https://www.gnu.org/s/ddrescue/ddrescue.html" arch="all" license="GPL-3.0-or-later" subpackages="$pkgname-doc" source="https://ftp.gnu.org/gnu/ddrescue/ddrescue-$pkgver.tar.lz" build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ CPPFLAGS="$CPPFLAGS" \ CXXFLAGS="$CXXFLAGS" \ LDFLAGS="$LDFLAGS" make } check() { # XXX: Some tests fail on s390x, but only on builder, so ignore it for now. case "$CARCH" in s390x) make check || true;; *) make check;; esac } package() { make DESTDIR="$pkgdir" install } sha512sums=" b9a8b462536c5ec29db69e3a5f70b0bce160d5c58373cb519f6d54aba2fc0c4907e74fbcd11d49291306dc29c76f1992575aef7cfff41f34748bbd96e33b745a ddrescue-1.27.tar.lz "