aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-03-13 23:07:59 +0100
committerAdrian Kummerlaender2016-03-13 23:07:59 +0100
commit941835c331f16846da6c65f466728e2ed807ca4d (patch)
treefd84cf001e089bf85a8ac58993a41ee75d11181b
parent9786703f5602d53acceae972909fce4184cb4142 (diff)
downloadTelebot-941835c331f16846da6c65f466728e2ed807ca4d.tar
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.tar.gz
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.tar.bz2
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.tar.lz
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.tar.xz
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.tar.zst
Telebot-941835c331f16846da6c65f466728e2ed807ca4d.zip
Add extension build and install instructions
-rw-r--r--LICENSE20
-rw-r--r--example/echo.scm (renamed from bot.scm)4
-rw-r--r--telebot.meta11
-rw-r--r--telebot.setup7
4 files changed, 40 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..0c3d64e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Adrian Kummerländer
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/bot.scm b/example/echo.scm
index 79b1b6e..7afd5ae 100644
--- a/bot.scm
+++ b/example/echo.scm
@@ -1,5 +1,5 @@
-(include "telebot.scm")
-(import (prefix telebot telebot:))
+(require-extension telebot
+ (prefix telebot telebot:))
(use data-structures)
diff --git a/telebot.meta b/telebot.meta
new file mode 100644
index 0000000..d8c3ffb
--- /dev/null
+++ b/telebot.meta
@@ -0,0 +1,11 @@
+((license "MIT")
+ (category web)
+
+ (needs openssl
+ http-client
+ medea
+ loops
+ vector-lib)
+
+ (author "Adrian Kummerländer")
+ (synopsis "Basic wrapper of the Telegram Bot API."))
diff --git a/telebot.setup b/telebot.setup
new file mode 100644
index 0000000..e47eae7
--- /dev/null
+++ b/telebot.setup
@@ -0,0 +1,7 @@
+(compile -s -O2 -d1 telebot -j telebot)
+(compile -s -O2 -d0 telebot.import.scm)
+
+(install-extension
+ 'telebot
+ '("telebot.so" "telebot.import.so")
+ '((version "1.0")))