2 # Copyright (C) 2018 Lucian Cristian
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.xz
12 PKG_SOURCE_URL
:=http
://http.debian.net
/debian
/pool
/main
/g
/$(PKG_NAME
)
13 PKG_HASH
:=5831d7e24070bc700d8f22deaeec56af1149392ce30ae67254096eaf8c9169ab
14 PKG_MAINTAINER
:=Lucian Cristian
<lucian.cristian@gmail.com
>
17 PKG_LICENSE_FILES
:=LICENSE
22 include $(INCLUDE_DIR
)/uclibc
++.mk
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/gddrescue
28 TITLE
:=Data recovery tool
29 URL
:=https
://www.gnu.org
/software
/ddrescue
/
30 DEPENDS
:=$(CXX_DEPENDS
)
33 define Package
/gddrescue
/description
34 GNU ddrescue is a data recovery tool. It copies data from one file
35 or block device
(hard disc
, cdrom
, etc
) to another
, trying to rescue
36 the good parts first in case of read errors.
41 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
42 CXXFLAGS
="$(TARGET_CXXFLAGS)" \
43 LDFLAGS
="$(TARGET_LDFLAGS)"
45 define Package
/gddrescue
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ddrescue
$(1)/usr
/sbin
/
48 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ddrescuelog
$(1)/usr
/sbin
/
51 $(eval
$(call BuildPackage
,gddrescue
))