summaryrefslogtreecommitdiff
path: root/user/ddrescue
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-29 21:09:54 -0700
committerDan Theisen <djt@hxx.in>2018-09-29 21:10:12 -0700
commit10f62da680c71e8cbe5d65ed029ab1f81d940f30 (patch)
treea54fac55f2389d545728289deedc210e3836536b /user/ddrescue
parentb0219c9d7c46dfbd929160cf550985334e66345e (diff)
downloadpackages-10f62da680c71e8cbe5d65ed029ab1f81d940f30.tar.gz
packages-10f62da680c71e8cbe5d65ed029ab1f81d940f30.tar.bz2
packages-10f62da680c71e8cbe5d65ed029ab1f81d940f30.tar.xz
packages-10f62da680c71e8cbe5d65ed029ab1f81d940f30.zip
user/ddrescue: new package
Diffstat (limited to 'user/ddrescue')
-rw-r--r--user/ddrescue/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/ddrescue/APKBUILD b/user/ddrescue/APKBUILD
new file mode 100644
index 000000000..f1c42d607
--- /dev/null
+++ b/user/ddrescue/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=ddrescue
+pkgver=1.23
+pkgrel=0
+pkgdesc="Data recovery tool for block devices with errors"
+url="https://www.gnu.org/s/ddrescue/ddrescue.html"
+license="GPL-3.0+"
+arch="all !aarch64"
+subpackages="$pkgname-doc"
+source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz"
+
+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="4f0b27067966b71efaae809d4f38714863cf3663f3b8c3f26055d482debb15c0fab77752411a9d242f18dbb8e4edc68494f866721dae9c95cfc5354439eaa656 ddrescue-1.23.tar.lz"