Compare commits
2 commits
cf44591b9f
...
f125d130f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f125d130f4 | ||
|
|
2b4bc71ede |
2 changed files with 34 additions and 0 deletions
32
create-repo.sh
Executable file
32
create-repo.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/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 -sr --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"
|
||||||
|
|
||||||
|
#TODO: Add deps resolving
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
|
https://aur.archlinux.org/seafile.git
|
||||||
https://aur.archlinux.org/seafile-client.git
|
https://aur.archlinux.org/seafile-client.git
|
||||||
|
https://aur.archlinux.org/hytale-launcher-bin.git
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue