From 670402e08ca3ad7fa6a7b7559e5b4f2564997f9e Mon Sep 17 00:00:00 2001 From: b1ek Date: Tue, 13 Feb 2024 19:35:36 +1000 Subject: [PATCH] (docs) add example brick --- bricks/example.brick | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 bricks/example.brick diff --git a/bricks/example.brick b/bricks/example.brick new file mode 100644 index 0000000..6f341fe --- /dev/null +++ b/bricks/example.brick @@ -0,0 +1,34 @@ +#!/bin/sh +# example brick +# made by alice +# GPL3 only +# uwu + +# this 2 lines are to prevent it from being installed +errcho '`example` brick is not an installable brick, its for packaging reference only' +exit 1 + +info() { + echo this brick does this and that +} + +license() { + echo GPL3 +} + +repo() { + echo https://github.com/example/example.git +} + +pkgs() { + # as in pacman -S sh curl + echo sh curl +} + +install() { + sh -c "$(curl https://example.com/script.sh)" +} + +uninstall() { + rm -fr ~/.example_pkg +}