| 1 | #ifndef REPOS_H |
| 2 | #define REPOS_H |
| 3 | |
| 4 | typedef struct |
| 5 | { |
| 6 | const char *name; |
| 7 | const char *url; |
| 8 | const char *buildCmd; |
| 9 | const char *installCmd; |
| 10 | const char *uninstallCmd; |
| 11 | } Repository; |
| 12 | |
| 13 | |
| 14 | static const Repository REPOS[] = { |
| 15 | /* add your repos here... */ |
| 16 | { |
| 17 | .name = "tins", |
| 18 | .url = "https://codeberg.org/theidioticdev/tins", |
| 19 | .buildCmd = "true", |
| 20 | .installCmd = |
| 21 | "install -Dm755 tins /usr/local/bin && install -Dm644 completions/tins-comp.sh /usr/share/bash-completions/completions/tins.sh", |
| 22 | .uninstallCmd = |
| 23 | "rm -f /usr/local/bin/tins /usr/share/bash-completions/completions/tins.sh"}, |
| 24 | { |
| 25 | .name = "sfetch", |
| 26 | .url = "https://codeberg.org/theidioticdev/sfetch", |
| 27 | .buildCmd = "./build", |
| 28 | .installCmd = "./build --install", |
| 29 | .uninstallCmd = "./build --uninstall"} |
| 30 | |
| 31 | }; |
| 32 | |
| 33 | static const size_t REPO_COUNT = sizeof (REPOS) / sizeof (REPOS[0]); |
| 34 | #endif |