diff options
author | xengineering <me@xengineering.eu> | 2022-05-29 22:04:07 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-05-29 22:04:07 +0200 |
commit | c14c11792652f65fe3d73417f3c545ab03816ac8 (patch) | |
tree | 320d1114abc3034524e0f701a063e3a541636b40 | |
parent | 355075fc2570407bfa836f059979d7ffabb7d578 (diff) | |
download | pkgbuilds-c14c11792652f65fe3d73417f3c545ab03816ac8.tar pkgbuilds-c14c11792652f65fe3d73417f3c545ab03816ac8.tar.zst pkgbuilds-c14c11792652f65fe3d73417f3c545ab03816ac8.zip |
Add repository managing scripts
-rwxr-xr-x | add_package.sh | 24 | ||||
-rwxr-xr-x | find_package.sh | 8 | ||||
-rwxr-xr-x | sign_package.sh | 8 |
3 files changed, 0 insertions, 40 deletions
diff --git a/add_package.sh b/add_package.sh deleted file mode 100755 index 8cad456..0000000 --- a/add_package.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - - -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" -FILESTORAGE="$PREFIX/$REPO.files" - - -# make sure folders exist -mkdir -p $PREFIX - -# add to database and re-sign database -repo-add $DATABASE.tar.zst $PKG -gpg -u xengineering --detach-sign -o $DATABASE.sig $DATABASE -gpg -u xengineering --detach-sign -o $FILESTORAGE.sig $FILESTORAGE - -# copy package and signature to repository -cp $PKG $PREFIX/ -cp $PKG.sig $PREFIX/ - diff --git a/find_package.sh b/find_package.sh deleted file mode 100755 index 153cfae..0000000 --- a/find_package.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - - -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 deleted file mode 100755 index 185b0b5..0000000 --- a/sign_package.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - - -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 - |