(docs) add example brick

This commit is contained in:
b1ek 2024-02-13 19:35:36 +10:00
parent fd1644a41c
commit 670402e08c
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 34 additions and 0 deletions

34
bricks/example.brick Normal file
View File

@ -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
}