From e9046a96f1edd2d52594785998d90a14d10a5803 Mon Sep 17 00:00:00 2001 From: huker667 Date: Sun, 10 May 2026 09:51:20 +0300 Subject: init commit v0.7 --- docs/creating-repositories.md | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docs/creating-repositories.md (limited to 'docs/creating-repositories.md') diff --git a/docs/creating-repositories.md b/docs/creating-repositories.md new file mode 100644 index 0000000..f7bbd2f --- /dev/null +++ b/docs/creating-repositories.md @@ -0,0 +1,57 @@ +# creating repositories + +your repository should be packed in Zstd archive and your repository should have this structure: +``` +repo-name.tar.zst/ +| manifest.uz +| pkgs.uz +| packages/ +|| example/ +||| install.sh +||| remove.sh +||| depends.uz +|| halal/ +||| ... +|| ... +``` + +*manifest.uz*: +``` +repo-name | Repository Description | maintainer | not required... +``` + +*pkgs.uz*: +``` +example | Example package for Da | 1.0.0 +halal | most halal package in the world | 78fd004609 +``` +*packages/example/*: +``` +example/ +| install.sh +| remove.sh +| depends.uz +``` +*packages/example/install.sh*: +```bash +#!/bin/sh +set -e + +curl -# -O http://example.org/example/bin/example.sh +mkdir -p $DESTDIR/usr/bin +cp -v example.sh $DESTDIR/usr/bin/example +chmod +x $DESTDIR/usr/bin/example +``` +*packages/example/remove.sh*: +```bash +#!/bin/sh +set -e + +rm -fv $DESTDIR/usr/bin/example +``` +*packages/example/depends.uz*: +``` +python-uzbekdb +example-lib +procps-ng +``` -- cgit v1.3.1