From 89a2558f1be3154f9b065a91965758a0e8f99fa4 Mon Sep 17 00:00:00 2001 From: MrBesen Date: Mon, 14 Mar 2022 16:53:20 +0100 Subject: [PATCH] inital --- .gitignore | 1 + Readme.md | 16 ++++++++++++++++ snapcraft.yaml | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100644 Readme.md create mode 100644 snapcraft.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d294450 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.snap diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..feb94e5 --- /dev/null +++ b/Readme.md @@ -0,0 +1,16 @@ +# TicTacToebot Snap + +Build with: +``` +snapcraft +``` + +Install with: +``` +snap install --devmode *.snap +``` + +Run with: +``` +snap run tictactoebot +``` \ No newline at end of file diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000..29367ef --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,34 @@ +name: tictactoebot +version: "1.0.0" +summary: Tictactoebot +description: | + A Telegrambot to play tictactoe in Telegram Groupchats + +confinement: devmode +base: core18 + +parts: + tictactoebot: + plugin: make + source-type: git + source: https://git.mrbesen.de/MrBesen/tictactoebot.git + source-branch: master + artifacts: + - tictactoebot + makefile: Makefile + build-packages: + - g++ + - make + - libcurl4-openssl-dev + stage-packages: + - libcurl4 + override-build: | + git clone --depth=1 --branch=v3.7.3 https://github.com/nlohmann/json.git + ln -sr json/include/nlohmann TAPI/include + make -j4 + cp -l tictactoebot $SNAPCRAFT_PART_INSTALL/tictactoebot + + +apps: + tictactoebot: + command: tictactoebot