-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaur2ccr.8
182 lines (162 loc) · 5.05 KB
/
aur2ccr.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
'\" t
.\" Title: aur2ccr
.\" Author: [see the "Authors" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 04/03/2012
.\" Manual: aur2ccr Manual
.\" Source: aur2ccr
.\" Language: English
.\"
.TH "aur2ccr" "8" "04/03/2012" "aur2ccr" "aur2ccr Manual"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
aur2ccr \- simple script to automate pulling packages from AUR and Arch repos, and converting them to a format ready for uploading to CCR.
.SH "SYNOPSIS"
.sp
\fIaur2ccr\fR [options] [packages]
.SH "DESCRIPTION"
.sp
aur2ccr is a bash script to make converting packages from Arch User Repositories (AUR) or the main Arch Linux repositories to Chakra Community Repositories (CCR) easier\&. It allows you to turn any AUR *.src.tar.gz package into a CCR-ready *.src.tar.gz package, using makepkg(8), ccr(8), pacman(8), and other tools\&.
.SH "OPTIONS"
.PP
\fB\-m\fR <\'My Name (nick) <myemail@example.com>\'>
.RS 4
Tells the script to automatically add specified maintainer information to the packages\&. Long option: --maintainer\&.
.RE
.PP
\fB\-e\fR
.RS 4
Edit each PKGBUILD with $EDITOR before building the package\&. Long option: --edit\&.
.RE
.PP
\fB\-c\fR
.RS 4
Consolidate all *.src.tar.gz packages built by the script into the working directory\&. Long option: --consolidate\&.
.RE
.PP
\fB\-i\fR
.RS 4
Install all packages build by the script, in order to test them beofre uploading to CCR\&. Long option: --install\&.
.RE
.PP
\fB\-1\fR
.RS 4
Reset the 'pkgrel' variable to 1\&. Long option: --reset-pkgrel\&.
.RE
.PP
\fB\-f\fR <\'AUR/CCR-compat source package filename\'>
.RS 4
Specify a local package to build from\&. Long option: --from-src\&.
.RE
.PP
\fB\-u\fR <\'URL of AUR/CCR-compatible *.src.tar.gz package\'>
.RS 4
Download and build a packge from a user-specified URL, instead of searching for a pacmage name in AUR and Arch repos\&. Long option: --from-url\&.
.RE
.PP
\fB\-d\fR <\'directory containing extracted *.src.tar.gz package\'>
.RS 4
Build a package using a PKGBUILD and other (optional) files in a user-specified directory, instead of searching for a pacmage name in AUR and Arch repos\&. Long option: --from-dir\&.
.RE
.PP
\fB\-C\fR <\'directory to use as working dir instead of current dir\'>
.RS 4
Work in in a directory other than the current one\&. This is similar to the -C <dir> option to tar\&. If -c or -t are set, this will put final packages in the folder given to -C\&. Long option: --cd\&.
.RE
.PP
\fB\-t\fR
.RS 4
Build packages in $tmpdir (/tmp/aur2ccr by default), and move finished packages to the working dir, like -c\&. Don't use both -c and -t at the same time\&. Long option: --temp\&.
.RE
.PP
\fB\-l\fR <\'logfile'\>
.RS 4
Log the output of aur2ccr ONLY (not wget, makepkg, pacman, or others) to <logfile>, using tee(1)\&. Long option: --log\&.
.RE
.PP
\fB\-s\fR
.RS 4
Perform some setup-related tasks, such as choosing the closest pacman mirrors\&. Long option: --setup\&.
.RE
.PP
\fB\-a\fR
.RS 4
Add an aur2ccr 'advertisement', in the form: # Contributor: aur2ccr (http://ddg.gg/?q=!ccr+aur2ccr)\&. Long option: --addad\&.
.RE
.PP
.SH "EXAMPLE USAGE"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Download and build the AUR or Arch-repo package 'pkgname', changing the maintainer information:
aur2ccr \-m "My Name (nick) <myemail@example.com>" pkgname
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Download and build the AUR package 'aur-package', editing the PKGBUILD with $EDITOR before building (if $EDITOR is unset, aur2ccr will use vi):
aur2ccr \-e aur-package
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Download and build 'pkgname1', 'aurpkg2', and 'archpkg3' in /tmp, moving all build source packages to the working directory:
aur2ccr \-t pkgname1 aurpkg2 archpkg3
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Download and build the AUR/CCR-compatible source package (.src.tar.gz) at 'http://someurl/sourcepackage':
aur2ccr \-u 'http://someurl/sourcepackage'
.RE
.sp
.SH "CONFIGURATION"
.sp
Arch to Chakra package name translations are in /etc/aur2ccr/names.conf. Entries are in the format:
archpkgname=chakrapkgname
.sp
Configuration options for aur2ccr are in /etc/aur2ccr/aur2ccr.conf.
.sp
The pacman configuration file for Arch repositories is in /etc/aur2ccr/archrepos.pacman.conf
.sp
All configuration files can also be placed in '~/.aur2ccr/'. In fact, settings in these 'local' configuration files take precedence over global configurations.
.sp
.SH "REPORTING BUGS"
.sp
Please report bugs at: <https://github.com/redhat69/aur2ccr/issues/>
.SH "AUTHORS"
.sp
george, Inkane, CaptainKnots