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.

98 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gptfdisk
  9. PKG_VERSION:=1.0.4
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Alif M. Ahmad <alive4ever@live.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  15. PKG_HASH:=b663391a6876f19a3cd901d862423a16e2b5ceaa2f4a3b9bb681e64b9c7ba78d
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gptfdisk/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Disc
  23. URL:=http://www.rodsbooks.com/gdisk
  24. DEPENDS:= +libstdcpp
  25. endef
  26. define Package/gdisk
  27. $(call Package/gptfdisk/Default)
  28. TITLE:=GPT aware disk manipulation utility for interactive use
  29. DEPENDS+= +libuuid
  30. endef
  31. define Package/gdisk/description
  32. gdisk is GPT aware disk partitioning tool, with interactive UI.
  33. endef
  34. define Package/cgdisk
  35. $(call Package/gptfdisk/Default)
  36. TITLE:=GPT aware disk manipulation utility for interactive use
  37. DEPENDS+= +libuuid +libncursesw
  38. endef
  39. define Package/cgdisk/description
  40. cgdisk is GPT aware disk partitioning tool, with interactive ncurses based UI.
  41. endef
  42. define Package/sgdisk
  43. $(call Package/gptfdisk/Default)
  44. TITLE:=GPT aware disk manipulation utility for scripting use
  45. DEPENDS+= +libuuid +libpopt
  46. endef
  47. define Package/sgdisk/description
  48. sgdisk is GPT-aware disk partitioning tool for scripting use.
  49. endef
  50. define Package/fixparts
  51. $(call Package/gptfdisk/Default)
  52. TITLE:=A utility to fix corrupted MBR partitions
  53. DEPENDS+=
  54. endef
  55. define Package/fixparts/description
  56. a text-mode menu-driven program for repairing certain types of problems with
  57. Master Boot Record (MBR) partition tables
  58. endef
  59. define Package/gdisk/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gdisk $(1)/usr/bin/
  62. endef
  63. define Package/cgdisk/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgdisk $(1)/usr/bin/
  66. endef
  67. define Package/sgdisk/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sgdisk $(1)/usr/bin/
  70. endef
  71. define Package/fixparts/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fixparts $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,gdisk))
  76. $(eval $(call BuildPackage,cgdisk))
  77. $(eval $(call BuildPackage,sgdisk))
  78. $(eval $(call BuildPackage,fixparts))