2 # Copyright (C) 2016 Shuanglei Tao <tsl0922@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/tsl0922
/ttyd
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=d72dcca3dec00cda87b80a0a25ae4fee2f8b9098c1cdb558508dcb14fbb6fafc
18 PKG_MAINTAINER
:=Shuanglei Tao
<tsl0922@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
30 TITLE
:=Command-line tool for sharing terminal over the web
31 DEPENDS
:=+libopenssl
+libjson-c
+libuv
+zlib
+libwebsockets-full
32 URL
:=https
://github.com
/tsl0922
/ttyd
36 define Package
/ttyd
/description
37 ttyd is a command-line tool for sharing terminal over the web.
40 define Package
/ttyd
/conffiles
44 define Package
/ttyd
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/ttyd
$(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/config
/
48 $(INSTALL_CONF
) .
/files
/ttyd.config
$(1)/etc
/config
/ttyd
49 $(INSTALL_DIR
) $(1)/etc
/init.d
/
50 $(INSTALL_BIN
) .
/files
/ttyd.init
$(1)/etc
/init.d
/ttyd
53 $(eval
$(call BuildPackage
,ttyd
))