Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aur-autobuild-mirror
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
aur-autobuild-mirror
Commits
f92618e5
There was an error fetching the commit references. Please try again later.
Commit
f92618e5
authored
2 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
u
parent
abb4bdec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aur-sync.sh
+24
-5
24 additions, 5 deletions
aur-sync.sh
docker-pikaur/Dockerfile
+5
-3
5 additions, 3 deletions
docker-pikaur/Dockerfile
with
29 additions
and
8 deletions
aur-sync.sh
+
24
−
5
View file @
f92618e5
...
...
@@ -18,8 +18,24 @@ repo_upstreams=(
)
# Please place simple, important, SMALL packages first. Place error-prone packages last.
aur_upstreams
=
'pikaur frpc frps azure-cli unzip-iconv create_ap snakesocks teamviewer remarkable goland goland-jre clion gnome-terminal-transparency'
# intellij-idea-ce rider graftcp # gractcp failure
aur_upstreams
=(
pikaur
frpc
frps
azure-cli
create_ap
asix-ax88179-dkms
snakesocks
teamviewer
remarkable
goland
goland-jre
clion
clion-jre
gnome-terminal-transparency
shared-bootdir-helper
chrome-gnome-shell
)
build_outdir
=
"mirrors/recolic-aur"
repo_name
=
recolic-aur
...
...
@@ -27,9 +43,12 @@ repo_name=recolic-aur
function
sync_aur
()
{
echo
"Running aur autobuild..."
# pikaur would skip if the package is already up-to-date.
sudo
docker run
-i
--cpus
1.2
--rm
-v
"
$(
pwd
)
/
$build_outdir
"
:/home/builder/.cache/pikaur/pkg recolic/pikaur bash
-c
"chown builder -R /home/builder/.cache/pikaur/pkg && sudo -u builder pikaur -Syw --noconfirm
$aur_upstreams
"
return
$?
# Use the external loop to force pikaur to skip failed packages.
for
ele
in
"
${
aur_upstreams
[@]
}
"
;
do
# pikaur would skip if the package is already up-to-date.
sudo
docker run
-i
--cpus
1.2
--rm
-v
"
$(
pwd
)
/mirrors/recolic-aur"
:/home/builder/.cache/pikaur/pkg recolic/pikaur bash
-c
"chown builder -R /home/builder/.cache/pikaur/pkg && sudo -u builder pikaur -Syw --noconfirm
$ele
"
[[
$?
!=
0
]]
&&
echo
"WARNING: Failed to build
$ele
"
done
}
function
sync_http
()
{
...
...
This diff is collapsed.
Click to expand it.
docker-pikaur/Dockerfile
+
5
−
3
View file @
f92618e5
# docker run -ti -v (pwd)/recolic-aur:/home/builder/.cache/pikaur/pkg recolic/pikaur bash -c 'chown builder -R /home/builder/.cache/pikaur/pkg && sudo -u builder pikaur -Sw --noconfirm $pkgs'
# You
must
reuse the container (commit it as new image) after running first build. There may be tons of dependencies to be downloaded.
# You
can
reuse the container (commit it as new image) after running first build. There may be tons of dependencies to be downloaded.
FROM
archlinux:base-devel
...
...
@@ -9,7 +9,9 @@ RUN pacman -S --noconfirm go
RUN
useradd
-m
builder
&&
echo
'builder ALL=(ALL) NOPASSWD: ALL'
|
EDITOR
=
'tee -a'
visudo
# To prevent docker from creating a root-only dir
RUN
sudo
-u
builder
mkdir
-p
/home/builder/.cache/pikaur/build
&&
\
sed
-i
's/check_pgpsigs() {/check_pgpsigs() { return 0/g'
/usr/share/makepkg/integrity/verify_signature.sh
# auto-key-retrieve is not working. This is my only solution.
sed
-i
's/check_pgpsigs() {/check_pgpsigs() { return 0/g'
/usr/share/makepkg/integrity/verify_signature.sh
&&
\
sed
-i
's/SigLevel.*$/SigLevel = Never/'
/etc/pacman.conf
# makepkg auto-key-retrieve is not working. This is my only solution.
# pacman will complain about expired GPG keys if the image is not updated. Disable the SigLevel verify to avoid these error.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment