diff --git a/any/calrepo.db b/any/calrepo.db index e9df1a6..e220947 120000 --- a/any/calrepo.db +++ b/any/calrepo.db @@ -1 +1 @@ -calrepo.db.tar.gz \ No newline at end of file +../db/calrepo.db.tar.gz \ No newline at end of file diff --git a/any/calrepo.db.sig b/any/calrepo.db.sig index f748a6e..f73a17e 120000 --- a/any/calrepo.db.sig +++ b/any/calrepo.db.sig @@ -1 +1 @@ -calrepo.db.tar.gz.sig \ No newline at end of file +../db/calrepo.db.tar.gz.sig \ No newline at end of file diff --git a/any/calrepo.db.tar.gz b/any/calrepo.db.tar.gz deleted file mode 100644 index e236807..0000000 Binary files a/any/calrepo.db.tar.gz and /dev/null differ diff --git a/any/calrepo.db.tar.gz.sig b/any/calrepo.db.tar.gz.sig deleted file mode 100644 index 1c74cb1..0000000 Binary files a/any/calrepo.db.tar.gz.sig and /dev/null differ diff --git a/any/calrepo.files b/any/calrepo.files index 4f4ecf3..a092baf 120000 --- a/any/calrepo.files +++ b/any/calrepo.files @@ -1 +1 @@ -calrepo.files.tar.gz \ No newline at end of file +../db/calrepo.files.tar.gz \ No newline at end of file diff --git a/any/calrepo.files.sig b/any/calrepo.files.sig index 0a8a9a4..57545f6 120000 --- a/any/calrepo.files.sig +++ b/any/calrepo.files.sig @@ -1 +1 @@ -calrepo.files.tar.gz.sig \ No newline at end of file +../db/calrepo.files.tar.gz.sig \ No newline at end of file diff --git a/any/calrepo.files.tar.gz b/any/calrepo.files.tar.gz deleted file mode 100644 index c88e8e2..0000000 Binary files a/any/calrepo.files.tar.gz and /dev/null differ diff --git a/any/calrepo.files.tar.gz.sig b/any/calrepo.files.tar.gz.sig deleted file mode 100644 index ff2d15d..0000000 Binary files a/any/calrepo.files.tar.gz.sig and /dev/null differ diff --git a/build.sh b/build.sh index ad67ff2..43b0b40 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,16 @@ # TODO: Get the .pkg.tar.zst from calpkgs +getAnyPackages() { + cd x86_64 + + while read -r pkg; do + ln -sf "$pkg" "$(basename $pkg)" + done < "$1" + + cd .. +} + buildDatabase() { lastFolder=$(pwd -P) cd db || { echo "Couldn't cd into 'db'." 1>&2 && exit 1; } @@ -15,6 +25,7 @@ buildDatabase() { } runScript() { + getAnyPackages <(find -H "$PWD/any" -mindepth 1 -type f -regex '.*.pkg.tar.zst.*') buildDatabase <(find -H "$PWD" -mindepth 1 -type f -regex '.*.pkg.tar.zst') } diff --git a/x86_64/calrepo.db b/x86_64/calrepo.db index e9df1a6..e220947 120000 --- a/x86_64/calrepo.db +++ b/x86_64/calrepo.db @@ -1 +1 @@ -calrepo.db.tar.gz \ No newline at end of file +../db/calrepo.db.tar.gz \ No newline at end of file diff --git a/x86_64/calrepo.db.sig b/x86_64/calrepo.db.sig index f748a6e..f73a17e 120000 --- a/x86_64/calrepo.db.sig +++ b/x86_64/calrepo.db.sig @@ -1 +1 @@ -calrepo.db.tar.gz.sig \ No newline at end of file +../db/calrepo.db.tar.gz.sig \ No newline at end of file diff --git a/x86_64/calrepo.db.tar.gz b/x86_64/calrepo.db.tar.gz deleted file mode 100644 index cc5d919..0000000 Binary files a/x86_64/calrepo.db.tar.gz and /dev/null differ diff --git a/x86_64/calrepo.db.tar.gz.sig b/x86_64/calrepo.db.tar.gz.sig deleted file mode 100644 index f8d072d..0000000 Binary files a/x86_64/calrepo.db.tar.gz.sig and /dev/null differ diff --git a/x86_64/calrepo.files b/x86_64/calrepo.files index 4f4ecf3..a092baf 120000 --- a/x86_64/calrepo.files +++ b/x86_64/calrepo.files @@ -1 +1 @@ -calrepo.files.tar.gz \ No newline at end of file +../db/calrepo.files.tar.gz \ No newline at end of file diff --git a/x86_64/calrepo.files.sig b/x86_64/calrepo.files.sig index 0a8a9a4..57545f6 120000 --- a/x86_64/calrepo.files.sig +++ b/x86_64/calrepo.files.sig @@ -1 +1 @@ -calrepo.files.tar.gz.sig \ No newline at end of file +../db/calrepo.files.tar.gz.sig \ No newline at end of file diff --git a/x86_64/calrepo.files.tar.gz b/x86_64/calrepo.files.tar.gz deleted file mode 100644 index 36e44a4..0000000 Binary files a/x86_64/calrepo.files.tar.gz and /dev/null differ diff --git a/x86_64/calrepo.files.tar.gz.sig b/x86_64/calrepo.files.tar.gz.sig deleted file mode 100644 index 648c9a8..0000000 Binary files a/x86_64/calrepo.files.tar.gz.sig and /dev/null differ