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.

102 lines
2.8 KiB

  1. #
  2. # Copyright (C) 2009 Sharim At Work, Ltd.
  3. # Copyright (C) 2019 Jeffery To
  4. # Author: Xiangfu Liu <xiangfu@sharism.cc>
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=byobu
  11. PKG_VERSION:=5.129
  12. PKG_RELEASE:=1
  13. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  14. PKG_SOURCE_URL:=https://launchpad.net/byobu/trunk/$(PKG_VERSION)/+download
  15. PKG_HASH:=e5135f20750c359b6371ee87cf2729c6038fbf3a6e66680e67f6a2125b07c2b9
  16. PKG_LICENSE:=GPL-3.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/byobu/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. URL:=http://byobu.org/
  26. PKGARCH:=all
  27. endef
  28. define Package/byobu
  29. $(call Package/byobu/Default)
  30. TITLE:=Text-based window manager and terminal multiplexer
  31. DEPENDS:=+python3-light +python3-newt
  32. endef
  33. define Package/byobu-utils
  34. $(call Package/byobu/Default)
  35. TITLE:=Utilities included with byobu
  36. endef
  37. define Package/byobu/description
  38. Byobu is a GPLv3 open source text-based window manager and terminal
  39. multiplexer. It was originally designed to provide elegant enhancements
  40. to the otherwise functional, plain, practical GNU Screen, for the Ubuntu
  41. server distribution. Byobu now includes an enhanced profiles, convenient
  42. keybindings, configuration utilities, and toggle-able system status
  43. notifications for both the GNU Screen window manager and the more modern
  44. Tmux terminal multiplexer, and works on most Linux, BSD, and Mac
  45. distributions.
  46. endef
  47. define Package/byobu-utils/description
  48. $(call Package/byobu/description)
  49. These are the "bikeshed" utilities bundled with byobu:
  50. * col1..col9, NF
  51. * ctail
  52. * manifest
  53. * purge-old-kernels
  54. * vigpg
  55. * wifi-status
  56. endef
  57. define Package/byobu/install
  58. $(INSTALL_DIR) $(1)/etc
  59. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/byobu* $(1)/usr/bin/
  62. $(LN) byobu $(1)/usr/bin/byobu-screen
  63. $(LN) byobu $(1)/usr/bin/byobu-tmux
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/byobu $(1)/usr/lib/
  66. $(INSTALL_DIR) $(1)/usr/share/byobu
  67. for i in keybindings profiles status windows; do \
  68. $(CP) $(PKG_INSTALL_DIR)/usr/share/byobu/$$$$i $(1)/usr/share/byobu/ ; \
  69. done
  70. $(INSTALL_DIR) $(1)/usr/share/doc
  71. $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/byobu $(1)/usr/share/doc/
  72. endef
  73. define Package/byobu-utils/install
  74. $(INSTALL_DIR) $(1)/usr/bin
  75. for i in col1 ctail manifest purge-old-kernels vigpg wifi-status; do \
  76. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$$$$i $(1)/usr/bin/ ; \
  77. done
  78. for i in col2 col3 col4 col5 col6 col7 col8 col9 NF; do \
  79. $(LN) col1 $(1)/usr/bin/$$$$i ; \
  80. done
  81. endef
  82. $(eval $(call BuildPackage,byobu))
  83. $(eval $(call BuildPackage,byobu-utils))