Browse Source

add package ddrescue

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
539ae08296
  1. 6
      packages/ddrescue/build.sh
  2. 29
      packages/ddrescue/fix-configure.patch

6
packages/ddrescue/build.sh

@ -0,0 +1,6 @@
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/ddrescue/
TERMUX_PKG_DESCRIPTION="GNU data recovery tool"
TERMUX_PKG_VERSION=1.22
TERMUX_PKG_SRCURL=http://mirror.switch.ch/ftp/mirror/gnu/ddrescue/ddrescue-${TERMUX_PKG_VERSION}.tar.lz
TERMUX_PKG_SHA256=09857b2e8074813ac19da5d262890f722e5f7900e521a4c60354cef95eea10a7
TERMUX_PKG_DEPENDS="libgcc"

29
packages/ddrescue/fix-configure.patch

@ -0,0 +1,29 @@
diff -uNr ddrescue-1.22/configure ddrescue-1.22.mod/configure
--- ddrescue-1.22/configure 2017-02-03 14:22:59.000000000 +0200
+++ ddrescue-1.22.mod/configure 2017-09-09 22:03:38.904467078 +0300
@@ -15,23 +15,15 @@
LC_ALL=C
export LC_ALL
srcdir=
-prefix=/usr/local
+prefix=@TERMUX_PREFIX@
exec_prefix='$(prefix)'
bindir='$(exec_prefix)/bin'
datarootdir='$(prefix)/share'
infodir='$(datarootdir)/info'
mandir='$(datarootdir)/man'
-CXX=g++
CPPFLAGS=
CXXFLAGS='-Wall -W -O2'
-LDFLAGS=
-
-# checking whether we are using GNU C++.
-/bin/sh -c "${CXX} --version" > /dev/null 2>&1 ||
- {
- CXX=c++
- CXXFLAGS='-W -O2'
- }
+LDFLAGS=-L/data/data/com.termux/files/usr/lib
# Loop over all args
args=
Loading…
Cancel
Save