Skip to content

Commit 50821fe

Browse files
committed
[update] : Changeable with helper name
1 parent c242f30 commit 50821fe

File tree

1 file changed

+70
-70
lines changed

1 file changed

+70
-70
lines changed

modules/base/config.i686

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -9,74 +9,74 @@
99
# Config files for all i686 channel
1010
#
1111

12+
# この設定ファイルだけで使える変数
13+
AURHELPER="paru"
1214

13-
#-- Use trizen --#
14-
#aur_helper_command="trizen"
15-
#aur_helper_package="trizen"
16-
#aur_helper_depends=(
17-
# 'git'
18-
# 'pacutils'
19-
# 'perl'
20-
# 'perl-libwww'
21-
# 'perl-term-ui'
22-
# 'pacman'
23-
# 'perl-json'
24-
# 'perl-data-dump'
25-
# 'perl-lwp-protocol-https'
26-
# 'perl-term-readline-gnu'
27-
# 'highlight'
28-
#)
29-
#aur_helper_args=(
30-
# #--mflags "-AcC,--skippgpcheck"
31-
# --aur
32-
# --noedit
33-
#)
34-
35-
#-- Use wfa --#
36-
#aur_helper_package="wfa-git"
37-
#aur_helper_command="wfa"
38-
#aur_helper_depends=('sudo' 'pacman' 'jq' 'python3' 'curl' 'pyalpm' 'python-srcinfo')
39-
#aur_helper_args=(
40-
# --mflags "-AcC"
41-
# --mflags "--skippgpcheck"
42-
# --aur
43-
#)
44-
45-
#-- Use pikaur --#
46-
#aur_helper_package="pikaur"
47-
#aur_helper_command="pikaur"
48-
#aur_helper_depends=("pyalpm" "asp" "python-commonmark")
49-
#aur_helper_args=(
50-
# --aur
51-
# --noedit
52-
# --noconfirm
53-
# --nodiff
54-
# --rebuild
55-
# --mflags="-AcC,--skippgpcheck"
56-
#)
57-
58-
#-- Use paru --#
59-
#aur_helper_package="paru"
60-
#aur_helper_command="paru"
61-
#aur_helper_depends=("cargo" "asp" "bat")
62-
#aur_helper_args=(
63-
# --useask
64-
# --mflags "-AcC"
65-
# --mflags "--skippgpcheck"
66-
# --aur
67-
# --skipreview
68-
# --noupgrademenu
69-
# --removemake
70-
#)
71-
72-
73-
#-- Use pikaur --#
74-
aur_helper_package="pikaur"
75-
aur_helper_command="pikaur"
76-
aur_helper_depends=('pyalpm' 'git' 'python-commonmark')
77-
aur_helper_args=(
78-
"--aur"
79-
"--noedit"
80-
"--rebuild"
81-
"--pikaur-debug"
82-
)
15+
case "$AURHELPER" in
16+
"trizen")
17+
#-- Use trizen --#
18+
aur_helper_command="trizen"
19+
aur_helper_package="trizen"
20+
aur_helper_depends=(
21+
'git'
22+
'pacutils'
23+
'perl'
24+
'perl-libwww'
25+
'perl-term-ui'
26+
'pacman'
27+
'perl-json'
28+
'perl-data-dump'
29+
'perl-lwp-protocol-https'
30+
'perl-term-readline-gnu'
31+
'highlight'
32+
)
33+
aur_helper_args=(
34+
#--mflags "-AcC,--skippgpcheck"
35+
--aur
36+
--noedit
37+
)
38+
;;
39+
"wfa")
40+
#-- Use wfa --#
41+
aur_helper_package="wfa-git"
42+
aur_helper_command="wfa"
43+
aur_helper_depends=('sudo' 'pacman' 'jq' 'python3' 'curl' 'pyalpm' 'python-srcinfo')
44+
aur_helper_args=(
45+
--mflags "-AcC"
46+
--mflags "--skippgpcheck"
47+
--aur
48+
)
49+
;;
50+
"paru")
51+
#-- Use paru --#
52+
aur_helper_package="paru"
53+
aur_helper_command="paru"
54+
aur_helper_depends=("cargo" "asp" "bat")
55+
aur_helper_args=(
56+
--useask
57+
--mflags "-AcC"
58+
--mflags "--skippgpcheck"
59+
--aur
60+
--skipreview
61+
--noupgrademenu
62+
--removemake
63+
)
64+
;;
65+
"pikaur")
66+
#-- Use pikaur --#
67+
aur_helper_package="pikaur"
68+
aur_helper_command="pikaur"
69+
aur_helper_depends=('pyalpm' 'git' 'python-commonmark')
70+
aur_helper_args=(
71+
"--aur"
72+
"--noedit"
73+
"--rebuild"
74+
"--pikaur-debug"
75+
)
76+
;;
77+
*)
78+
echo "module/base/config.i686: Unknown AUR Helper name \"$AURHELPER\"" >&2
79+
exit 1
80+
;;
81+
esac
82+
unset AURHELPER

0 commit comments

Comments
 (0)