]> prime8.dev >> repos - ttyd.git/commitdiff
[ci skip] Add openwrt Makefile
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 17 Sep 2016 12:23:09 +0000 (20:23 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 17 Sep 2016 12:23:09 +0000 (20:23 +0800)
.gitignore
openwrt/Makefile [new file with mode: 0644]

index 62beb87b34d951cda335ee008a3199438e46a683..dc142818a773902a2348fde9c1786ff589431619 100644 (file)
@@ -49,4 +49,5 @@ build
 .idea/
 
 # Project files
-html.h
\ No newline at end of file
+html.h
+!openwrt/Makefile
\ No newline at end of file
diff --git a/openwrt/Makefile b/openwrt/Makefile
new file mode 100644 (file)
index 0000000..4076188
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2014-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ttyd
+PKG_VERSION:=master
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_URL:=https://github.com/tsl0922/ttyd.git
+PKG_SOURCE_VERSION:=$(PKG_VERSION)
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
+
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+CMAKE_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/ttyd
+       SECTION:=utils
+       CATEGORY:=Utilities
+       TITLE:=A command line tool for sharing terminal over the web
+       DEPENDS:=+openssl +libjson-c +libpthread +libwebsockets-openssl
+       URL:=https://github.com/tsl0922/ttyd
+       MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
+endef
+
+define Package/ttyd/description
+ttyd is a simple command line tool for sharing terminal over the web.
+endef
+
+define Package/ttyd/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,ttyd))
\ No newline at end of file