You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2018 Lucian Cristian
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=gddrescue
  6. PKG_VERSION:=1.23
  7. PKG_RELEASE:=4
  8. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
  9. PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/g/$(PKG_NAME)
  10. PKG_HASH:=5831d7e24070bc700d8f22deaeec56af1149392ce30ae67254096eaf8c9169ab
  11. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  12. PKG_LICENSE:=GPL-2.0-or-later
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/gddrescue
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Data recovery tool
  21. URL:=https://www.gnu.org/software/ddrescue/
  22. DEPENDS:=+libstdcpp
  23. endef
  24. define Package/gddrescue/description
  25. GNU ddrescue is a data recovery tool. It copies data from one file
  26. or block device (hard disc, cdrom, etc) to another, trying to rescue
  27. the good parts first in case of read errors.
  28. endef
  29. CONFIGURE_ARGS += \
  30. CXX="$(TARGET_CXX)" \
  31. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  32. CXXFLAGS="$(TARGET_CXXFLAGS)" \
  33. LDFLAGS="$(TARGET_LDFLAGS)"
  34. define Package/gddrescue/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ddrescue $(1)/usr/sbin/
  37. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ddrescuelog $(1)/usr/sbin/
  38. endef
  39. $(eval $(call BuildPackage,gddrescue))