summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-09-10 18:24:18 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-09-10 18:24:18 +0200
commit01e214708017ca5b182bdda6578804172506d4a5 (patch)
tree7b1300400b8a1bc16ba2d640a39a96d4d63b26c1
parenta1aebb641f56a2c970ea9c1bd25bacc4143a578b (diff)
downloadpkgbuilds-01e214708017ca5b182bdda6578804172506d4a5.tar
pkgbuilds-01e214708017ca5b182bdda6578804172506d4a5.tar.zst
pkgbuilds-01e214708017ca5b182bdda6578804172506d4a5.zip
Write Documentation for Utils
-rwxr-xr-xadd_package.sh6
-rwxr-xr-xfind_package.sh2
-rwxr-xr-xsign_package.sh2
3 files changed, 5 insertions, 5 deletions
diff --git a/add_package.sh b/add_package.sh
index 98150cb..8cad456 100755
--- a/add_package.sh
+++ b/add_package.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-REPO=$1
-ARCH=$2
-PKG=$3
+REPO=$1 # provide repository name (e.g. 'xengineering') as first argument
+ARCH=$2 # provide architecture (e.g. 'aarch64' or 'x86_64') as second argument
+PKG=$3 # provide path to package (e.g. 'xengineering-base-meta/xengineering-base-meta-1.0.0-1-any.pkg.tar.zst') as third argument
PREFIX="repos/$REPO/os/$ARCH"
DATABASE="$PREFIX/$REPO.db"
diff --git a/find_package.sh b/find_package.sh
index 0fe7410..153cfae 100755
--- a/find_package.sh
+++ b/find_package.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-PKG_NAME=$1
+PKG_NAME=$1 # provide the package name as argument
find . -type f -iname "$PKG_NAME*.pkg.tar.zst" | grep -v "./repos*."
diff --git a/sign_package.sh b/sign_package.sh
index 7406f9b..185b0b5 100755
--- a/sign_package.sh
+++ b/sign_package.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-PKG=$1
+PKG=$1 # provide path to package (e.g. 'xengineering-base-meta/xengineering-base-meta-1.0.0-1-any.pkg.tar.zst') as argument
gpg -u xengineering --detach-sign -o $PKG.sig $PKG