Inital scream
This commit is contained in:
commit
cf44591b9f
3 changed files with 33 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
repo/
|
||||||
|
packages/
|
||||||
30
download-packages.sh
Executable file
30
download-packages.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -f ./repo/*
|
||||||
|
rm -rf ./packages
|
||||||
|
mkdir -p ./packages
|
||||||
|
|
||||||
|
BASE_DIR=$(realpath .)
|
||||||
|
REPO_DIR="$(realpath repo)"
|
||||||
|
PKG_DIR="$(realpath packages)"
|
||||||
|
|
||||||
|
cd $PKG_DIR
|
||||||
|
|
||||||
|
while read -u 10 p; do
|
||||||
|
GIT_URL=$p
|
||||||
|
GIT_FILE=$(basename $GIT_URL)
|
||||||
|
REPO_NAME=${GIT_FILE%.*}
|
||||||
|
|
||||||
|
git clone $GIT_URL
|
||||||
|
cd $REPO_NAME
|
||||||
|
makepkg -r --sign
|
||||||
|
|
||||||
|
PKG_FILES=(*.pkg*)
|
||||||
|
mv *.tar.zst $REPO_DIR
|
||||||
|
mv *.tar.zst.sig $REPO_DIR
|
||||||
|
|
||||||
|
repo-add -n "$REPO_DIR/repo.db.tar.zst" "$REPO_DIR/${PKG_FILES[0]}"
|
||||||
|
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
done 10<"$BASE_DIR/target-pkgs.list"
|
||||||
1
target-pkgs.list
Normal file
1
target-pkgs.list
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
https://aur.archlinux.org/seafile-client.git
|
||||||
Loading…
Add table
Add a link
Reference in a new issue