blob: 62faeacea2cbe0cb6364be48d3b27f3cb76924fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=ddrescue
pkgver=1.21
pkgrel=0
pkgdesc="Data recovery tool for block devices with errors"
url="http://www.gnu.org/s/ddrescue/ddrescue.html"
arch="all !aarch64"
license="GPL3+"
subpackages="$pkgname-doc"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
}
check() {
cd "$builddir"
# 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() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="88d8571f4ab5e6ac7fcae5d5c77c104dab5a117596d5a2c13e0308af96811c601a429fe4ced12ba02e5a0e20bfd4aae6e3bec6fdc0860f3f80f8d89a4d85d97c ddrescue-1.21.tar.gz"
|