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.

48 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
  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:=ttyd
  9. PKG_VERSION:=1.3.2+git-f60398
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/tsl0922/ttyd.git
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=f60398fb0976d5a682f2a28c2e8f8b90ec1c4c2c
  16. PKG_MIRROR_HASH=687499f46471f018aadce1d71c72de8a7fdd2ea04b926d8eb9eaeb747e1f4388
  17. PKG_LICENSE:=MIT
  18. PKG_LICENSE_FILES:=LICENSE
  19. CMAKE_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/ttyd
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Command-line tool for sharing terminal over the web
  26. DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
  27. URL:=https://github.com/tsl0922/ttyd
  28. SUBMENU:=Terminal
  29. MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
  30. endef
  31. define Package/ttyd/description
  32. ttyd is a command-line tool for sharing terminal over the web.
  33. endef
  34. define Package/ttyd/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,ttyd))