2024-02-13 10:35:36 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# example brick
|
|
|
|
# made by alice
|
|
|
|
# GPL3 only
|
|
|
|
# uwu
|
|
|
|
|
|
|
|
|
|
|
|
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() {
|
2024-02-13 10:38:03 +01:00
|
|
|
# these 2 lines are to prevent it from being installed
|
|
|
|
errcho '`example` brick is not an installable brick, its for packaging reference only'
|
|
|
|
exit 1
|
|
|
|
|
2024-02-13 10:39:22 +01:00
|
|
|
sh -c "$(curl https://example.com/script.sh)"
|
2024-02-13 10:35:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
uninstall() {
|
|
|
|
rm -fr ~/.example_pkg
|
|
|
|
}
|