Merge pull request #8518 from neheb/i
[feed/packages.git] / utils / gddrescue / Makefile
1 #
2 # Copyright (C) 2018 Lucian Cristian
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=gddrescue
8 PKG_VERSION:=1.23
9 PKG_RELEASE:=1
10
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>
15
16 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=LICENSE
18
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gddrescue
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=Data recovery tool
29 URL:=https://www.gnu.org/software/ddrescue/
30 DEPENDS:=$(CXX_DEPENDS)
31 endef
32
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.
37 endef
38
39 CONFIGURE_ARGS += \
40 CXX="$(TARGET_CXX)" \
41 CPPFLAGS="$(TARGET_CPPFLAGS)" \
42 CXXFLAGS="$(TARGET_CXXFLAGS)" \
43 LDFLAGS="$(TARGET_LDFLAGS)"
44
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/
49 endef
50
51 $(eval $(call BuildPackage,gddrescue))