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.3+git-04d5bc
  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:=04d5bc1ecb59667d025a94e1967a83c24141f911
  16. PKG_MIRROR_HASH=87ea900f7bf67daf5131ecfcec0917e175d168ce52771012139c06dbafcc641d
  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))