# title: Gitea
# homepage: https://github.com/go-gitea/gitea
-# tagline: Fast, multi-platform web server with automatic HTTPS
+# tagline: Git with a cup of tea, painless self-hosted git service
# description: |
-# Caddy is an extensible server platform that uses TLS by default.
+# `gitea` is a clean, lightweight self-hosted Github alternative, forked from Gogs. Lighter and more user-friendly than Gitlab.
# examples: |
# ```bash
-# gitea start
+# gitea --version
# ```
set -e
set -u
+pkg_cmd_name="gitea"
pkg_common_opt="$HOME/.local"
# just a junk file so that the version check always fails for non-current versions
# (this will be "$HOME/.local/bin/gitea" by default)
mkdir -p "$pkg_common_bin"
mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+ chmod a+x "$pkg_common_cmd"
popd 2>&1 >/dev/null
}
# Adds "$HOME/.local/bin" to PATH
webi_path_add "$pkg_common_bin"
}
+
+pkg_post_install_message() {
+ echo "Installed 'gitea' as $pkg_common_cmd"
+}