Browse Source

first commit

guinux 4 years ago
commit
60a34f6681
69 changed files with 9721 additions and 0 deletions
  1. 2
    0
      AUTHORS
  2. 674
    0
      COPYING
  3. 1
    0
      README
  4. 1
    0
      TODO
  5. 3
    0
      create_pot_file.sh
  6. 131
    0
      data/applications/pamac-install.desktop
  7. 139
    0
      data/applications/pamac-manager.desktop
  8. 7
    0
      data/applications/pamac-tray.desktop
  9. 135
    0
      data/applications/pamac-updater.desktop
  10. 11
    0
      data/config/pamac.conf
  11. 16
    0
      data/dbus/org.manjaro.pamac.conf
  12. 5
    0
      data/dbus/org.manjaro.pamac.service
  13. BIN
      data/icons/16x16/apps/system-software-install.png
  14. BIN
      data/icons/24x24/status/pamac-tray-no-update.png
  15. BIN
      data/icons/24x24/status/pamac-tray-update.png
  16. BIN
      data/icons/32x32/apps/system-software-install.png
  17. 10
    0
      data/networkmanager/99_update_pamac_tray
  18. 25
    0
      data/polkit/org.manjaro.pamac.policy
  19. 7
    0
      data/systemd/pamac.service
  20. 278
    0
      examples/pactree.vala
  21. 24
    0
      files_to_translate
  22. 279
    0
      pamac.pot
  23. 21
    0
      pot_head
  24. 86
    0
      resources/choose_provider_dialog.ui
  25. 75
    0
      resources/history_dialog.ui
  26. 818
    0
      resources/manager_window.ui
  27. BIN
      resources/package-available.png
  28. BIN
      resources/package-install.png
  29. BIN
      resources/package-installed-locked.png
  30. BIN
      resources/package-installed-updated.png
  31. BIN
      resources/package-reinstall.png
  32. BIN
      resources/package-remove.png
  33. 75
    0
      resources/packages_chooser_dialog.ui
  34. 9
    0
      resources/pamac.installer.gresource.xml
  35. 23
    0
      resources/pamac.manager.gresource.xml
  36. 15
    0
      resources/pamac.updater.gresource.xml
  37. 203
    0
      resources/preferences_dialog.ui
  38. 115
    0
      resources/progress_window.ui
  39. 100
    0
      resources/transaction_info_dialog.ui
  40. 142
    0
      resources/transaction_sum_dialog.ui
  41. 191
    0
      resources/updater_window.ui
  42. 146
    0
      src/Makefile
  43. 258
    0
      src/alpm_config.vala
  44. 102
    0
      src/aur.vala
  45. 72
    0
      src/aur3.vala
  46. 34
    0
      src/choose_provider_dialog.vala
  47. 265
    0
      src/common.vala
  48. 697
    0
      src/daemon.vala
  49. 40
    0
      src/history_dialog.vala
  50. 69
    0
      src/installer.vala
  51. 55
    0
      src/manager.vala
  52. 927
    0
      src/manager_window.vala
  53. 61
    0
      src/package.vala
  54. 56
    0
      src/packages_chooser_dialog.vala
  55. 309
    0
      src/packages_model.vala
  56. 133
    0
      src/pamac_config.vala
  57. 40
    0
      src/preferences_dialog.vala
  58. 61
    0
      src/progress_window.vala
  59. 899
    0
      src/transaction.vala
  60. 40
    0
      src/transaction_info_dialog.vala
  61. 41
    0
      src/transaction_sum_dialog.vala
  62. 256
    0
      src/tray.vala
  63. 55
    0
      src/updater.vala
  64. 178
    0
      src/updater_window.vala
  65. 5
    0
      update_po_files.sh
  66. 55
    0
      util/alpm-util.c
  67. 20
    0
      util/alpm-util.h
  68. 1006
    0
      vapi/libalpm.vapi
  69. 220
    0
      vapi/polkit-gobject-1.vapi

+ 2
- 0
AUTHORS View File

@@ -0,0 +1,2 @@
1
+Main developers:
2
+  Guillaume Benoit <guillaume@manjaro.org>

+ 674
- 0
COPYING View File

@@ -0,0 +1,674 @@
1
+                    GNU GENERAL PUBLIC LICENSE
2
+                       Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+                            Preamble
9
+
10
+  The GNU General Public License is a free, copyleft license for
11
+software and other kinds of works.
12
+
13
+  The licenses for most software and other practical works are designed
14
+to take away your freedom to share and change the works.  By contrast,
15
+the GNU General Public License is intended to guarantee your freedom to
16
+share and change all versions of a program--to make sure it remains free
17
+software for all its users.  We, the Free Software Foundation, use the
18
+GNU General Public License for most of our software; it applies also to
19
+any other work released this way by its authors.  You can apply it to
20
+your programs, too.
21
+
22
+  When we speak of free software, we are referring to freedom, not
23
+price.  Our General Public Licenses are designed to make sure that you
24
+have the freedom to distribute copies of free software (and charge for
25
+them if you wish), that you receive source code or can get it if you
26
+want it, that you can change the software or use pieces of it in new
27
+free programs, and that you know you can do these things.
28
+
29
+  To protect your rights, we need to prevent others from denying you
30
+these rights or asking you to surrender the rights.  Therefore, you have
31
+certain responsibilities if you distribute copies of the software, or if
32
+you modify it: responsibilities to respect the freedom of others.
33
+
34
+  For example, if you distribute copies of such a program, whether
35
+gratis or for a fee, you must pass on to the recipients the same
36
+freedoms that you received.  You must make sure that they, too, receive
37
+or can get the source code.  And you must show them these terms so they
38
+know their rights.
39
+
40
+  Developers that use the GNU GPL protect your rights with two steps:
41
+(1) assert copyright on the software, and (2) offer you this License
42
+giving you legal permission to copy, distribute and/or modify it.
43
+
44
+  For the developers' and authors' protection, the GPL clearly explains
45
+that there is no warranty for this free software.  For both users' and
46
+authors' sake, the GPL requires that modified versions be marked as
47
+changed, so that their problems will not be attributed erroneously to
48
+authors of previous versions.
49
+
50
+  Some devices are designed to deny users access to install or run
51
+modified versions of the software inside them, although the manufacturer
52
+can do so.  This is fundamentally incompatible with the aim of
53
+protecting users' freedom to change the software.  The systematic
54
+pattern of such abuse occurs in the area of products for individuals to
55
+use, which is precisely where it is most unacceptable.  Therefore, we
56
+have designed this version of the GPL to prohibit the practice for those
57
+products.  If such problems arise substantially in other domains, we
58
+stand ready to extend this provision to those domains in future versions
59
+of the GPL, as needed to protect the freedom of users.
60
+
61
+  Finally, every program is threatened constantly by software patents.
62
+States should not allow patents to restrict development and use of
63
+software on general-purpose computers, but in those that do, we wish to
64
+avoid the special danger that patents applied to a free program could
65
+make it effectively proprietary.  To prevent this, the GPL assures that
66
+patents cannot be used to render the program non-free.
67
+
68
+  The precise terms and conditions for copying, distribution and
69
+modification follow.
70
+
71
+                       TERMS AND CONDITIONS
72
+
73
+  0. Definitions.
74
+
75
+  "This License" refers to version 3 of the GNU General Public License.
76
+
77
+  "Copyright" also means copyright-like laws that apply to other kinds of
78
+works, such as semiconductor masks.
79
+
80
+  "The Program" refers to any copyrightable work licensed under this
81
+License.  Each licensee is addressed as "you".  "Licensees" and
82
+"recipients" may be individuals or organizations.
83
+
84
+  To "modify" a work means to copy from or adapt all or part of the work
85
+in a fashion requiring copyright permission, other than the making of an
86
+exact copy.  The resulting work is called a "modified version" of the
87
+earlier work or a work "based on" the earlier work.
88
+
89
+  A "covered work" means either the unmodified Program or a work based
90
+on the Program.
91
+
92
+  To "propagate" a work means to do anything with it that, without
93
+permission, would make you directly or secondarily liable for
94
+infringement under applicable copyright law, except executing it on a
95
+computer or modifying a private copy.  Propagation includes copying,
96
+distribution (with or without modification), making available to the
97
+public, and in some countries other activities as well.
98
+
99
+  To "convey" a work means any kind of propagation that enables other
100
+parties to make or receive copies.  Mere interaction with a user through
101
+a computer network, with no transfer of a copy, is not conveying.
102
+
103
+  An interactive user interface displays "Appropriate Legal Notices"
104
+to the extent that it includes a convenient and prominently visible
105
+feature that (1) displays an appropriate copyright notice, and (2)
106
+tells the user that there is no warranty for the work (except to the
107
+extent that warranties are provided), that licensees may convey the
108
+work under this License, and how to view a copy of this License.  If
109
+the interface presents a list of user commands or options, such as a
110
+menu, a prominent item in the list meets this criterion.
111
+
112
+  1. Source Code.
113
+
114
+  The "source code" for a work means the preferred form of the work
115
+for making modifications to it.  "Object code" means any non-source
116
+form of a work.
117
+
118
+  A "Standard Interface" means an interface that either is an official
119
+standard defined by a recognized standards body, or, in the case of
120
+interfaces specified for a particular programming language, one that
121
+is widely used among developers working in that language.
122
+
123
+  The "System Libraries" of an executable work include anything, other
124
+than the work as a whole, that (a) is included in the normal form of
125
+packaging a Major Component, but which is not part of that Major
126
+Component, and (b) serves only to enable use of the work with that
127
+Major Component, or to implement a Standard Interface for which an
128
+implementation is available to the public in source code form.  A
129
+"Major Component", in this context, means a major essential component
130
+(kernel, window system, and so on) of the specific operating system
131
+(if any) on which the executable work runs, or a compiler used to
132
+produce the work, or an object code interpreter used to run it.
133
+
134
+  The "Corresponding Source" for a work in object code form means all
135
+the source code needed to generate, install, and (for an executable
136
+work) run the object code and to modify the work, including scripts to
137
+control those activities.  However, it does not include the work's
138
+System Libraries, or general-purpose tools or generally available free
139
+programs which are used unmodified in performing those activities but
140
+which are not part of the work.  For example, Corresponding Source
141
+includes interface definition files associated with source files for
142
+the work, and the source code for shared libraries and dynamically
143
+linked subprograms that the work is specifically designed to require,
144
+such as by intimate data communication or control flow between those
145
+subprograms and other parts of the work.
146
+
147
+  The Corresponding Source need not include anything that users
148
+can regenerate automatically from other parts of the Corresponding
149
+Source.
150
+
151
+  The Corresponding Source for a work in source code form is that
152
+same work.
153
+
154
+  2. Basic Permissions.
155
+
156
+  All rights granted under this License are granted for the term of
157
+copyright on the Program, and are irrevocable provided the stated
158
+conditions are met.  This License explicitly affirms your unlimited
159
+permission to run the unmodified Program.  The output from running a
160
+covered work is covered by this License only if the output, given its
161
+content, constitutes a covered work.  This License acknowledges your
162
+rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+  You may make, run and propagate covered works that you do not
165
+convey, without conditions so long as your license otherwise remains
166
+in force.  You may convey covered works to others for the sole purpose
167
+of having them make modifications exclusively for you, or provide you
168
+with facilities for running those works, provided that you comply with
169
+the terms of this License in conveying all material for which you do
170
+not control copyright.  Those thus making or running the covered works
171
+for you must do so exclusively on your behalf, under your direction
172
+and control, on terms that prohibit them from making any copies of
173
+your copyrighted material outside their relationship with you.
174
+
175
+  Conveying under any other circumstances is permitted solely under
176
+the conditions stated below.  Sublicensing is not allowed; section 10
177
+makes it unnecessary.
178
+
179
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+  No covered work shall be deemed part of an effective technological
182
+measure under any applicable law fulfilling obligations under article
183
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+similar laws prohibiting or restricting circumvention of such
185
+measures.
186
+
187
+  When you convey a covered work, you waive any legal power to forbid
188
+circumvention of technological measures to the extent such circumvention
189
+is effected by exercising rights under this License with respect to
190
+the covered work, and you disclaim any intention to limit operation or
191
+modification of the work as a means of enforcing, against the work's
192
+users, your or third parties' legal rights to forbid circumvention of
193
+technological measures.
194
+
195
+  4. Conveying Verbatim Copies.
196
+
197
+  You may convey verbatim copies of the Program's source code as you
198
+receive it, in any medium, provided that you conspicuously and
199
+appropriately publish on each copy an appropriate copyright notice;
200
+keep intact all notices stating that this License and any
201
+non-permissive terms added in accord with section 7 apply to the code;
202
+keep intact all notices of the absence of any warranty; and give all
203
+recipients a copy of this License along with the Program.
204
+
205
+  You may charge any price or no price for each copy that you convey,
206
+and you may offer support or warranty protection for a fee.
207
+
208
+  5. Conveying Modified Source Versions.
209
+
210
+  You may convey a work based on the Program, or the modifications to
211
+produce it from the Program, in the form of source code under the
212
+terms of section 4, provided that you also meet all of these conditions:
213
+
214
+    a) The work must carry prominent notices stating that you modified
215
+    it, and giving a relevant date.
216
+
217
+    b) The work must carry prominent notices stating that it is
218
+    released under this License and any conditions added under section
219
+    7.  This requirement modifies the requirement in section 4 to
220
+    "keep intact all notices".
221
+
222
+    c) You must license the entire work, as a whole, under this
223
+    License to anyone who comes into possession of a copy.  This
224
+    License will therefore apply, along with any applicable section 7
225
+    additional terms, to the whole of the work, and all its parts,
226
+    regardless of how they are packaged.  This License gives no
227
+    permission to license the work in any other way, but it does not
228
+    invalidate such permission if you have separately received it.
229
+
230
+    d) If the work has interactive user interfaces, each must display
231
+    Appropriate Legal Notices; however, if the Program has interactive
232
+    interfaces that do not display Appropriate Legal Notices, your
233
+    work need not make them do so.
234
+
235
+  A compilation of a covered work with other separate and independent
236
+works, which are not by their nature extensions of the covered work,
237
+and which are not combined with it such as to form a larger program,
238
+in or on a volume of a storage or distribution medium, is called an
239
+"aggregate" if the compilation and its resulting copyright are not
240
+used to limit the access or legal rights of the compilation's users
241
+beyond what the individual works permit.  Inclusion of a covered work
242
+in an aggregate does not cause this License to apply to the other
243
+parts of the aggregate.
244
+
245
+  6. Conveying Non-Source Forms.
246
+
247
+  You may convey a covered work in object code form under the terms
248
+of sections 4 and 5, provided that you also convey the
249
+machine-readable Corresponding Source under the terms of this License,
250
+in one of these ways:
251
+
252
+    a) Convey the object code in, or embodied in, a physical product
253
+    (including a physical distribution medium), accompanied by the
254
+    Corresponding Source fixed on a durable physical medium
255
+    customarily used for software interchange.
256
+
257
+    b) Convey the object code in, or embodied in, a physical product
258
+    (including a physical distribution medium), accompanied by a
259
+    written offer, valid for at least three years and valid for as
260
+    long as you offer spare parts or customer support for that product
261
+    model, to give anyone who possesses the object code either (1) a
262
+    copy of the Corresponding Source for all the software in the
263
+    product that is covered by this License, on a durable physical
264
+    medium customarily used for software interchange, for a price no
265
+    more than your reasonable cost of physically performing this
266
+    conveying of source, or (2) access to copy the
267
+    Corresponding Source from a network server at no charge.
268
+
269
+    c) Convey individual copies of the object code with a copy of the
270
+    written offer to provide the Corresponding Source.  This
271
+    alternative is allowed only occasionally and noncommercially, and
272
+    only if you received the object code with such an offer, in accord
273
+    with subsection 6b.
274
+
275
+    d) Convey the object code by offering access from a designated
276
+    place (gratis or for a charge), and offer equivalent access to the
277
+    Corresponding Source in the same way through the same place at no
278
+    further charge.  You need not require recipients to copy the
279
+    Corresponding Source along with the object code.  If the place to
280
+    copy the object code is a network server, the Corresponding Source
281
+    may be on a different server (operated by you or a third party)
282
+    that supports equivalent copying facilities, provided you maintain
283
+    clear directions next to the object code saying where to find the
284
+    Corresponding Source.  Regardless of what server hosts the
285
+    Corresponding Source, you remain obligated to ensure that it is
286
+    available for as long as needed to satisfy these requirements.
287
+
288
+    e) Convey the object code using peer-to-peer transmission, provided
289
+    you inform other peers where the object code and Corresponding
290
+    Source of the work are being offered to the general public at no
291
+    charge under subsection 6d.
292
+
293
+  A separable portion of the object code, whose source code is excluded
294
+from the Corresponding Source as a System Library, need not be
295
+included in conveying the object code work.
296
+
297
+  A "User Product" is either (1) a "consumer product", which means any
298
+tangible personal property which is normally used for personal, family,
299
+or household purposes, or (2) anything designed or sold for incorporation
300
+into a dwelling.  In determining whether a product is a consumer product,
301
+doubtful cases shall be resolved in favor of coverage.  For a particular
302
+product received by a particular user, "normally used" refers to a
303
+typical or common use of that class of product, regardless of the status
304
+of the particular user or of the way in which the particular user
305
+actually uses, or expects or is expected to use, the product.  A product
306
+is a consumer product regardless of whether the product has substantial
307
+commercial, industrial or non-consumer uses, unless such uses represent
308
+the only significant mode of use of the product.
309
+
310
+  "Installation Information" for a User Product means any methods,
311
+procedures, authorization keys, or other information required to install
312
+and execute modified versions of a covered work in that User Product from
313
+a modified version of its Corresponding Source.  The information must
314
+suffice to ensure that the continued functioning of the modified object
315
+code is in no case prevented or interfered with solely because
316
+modification has been made.
317
+
318
+  If you convey an object code work under this section in, or with, or
319
+specifically for use in, a User Product, and the conveying occurs as
320
+part of a transaction in which the right of possession and use of the
321
+User Product is transferred to the recipient in perpetuity or for a
322
+fixed term (regardless of how the transaction is characterized), the
323
+Corresponding Source conveyed under this section must be accompanied
324
+by the Installation Information.  But this requirement does not apply
325
+if neither you nor any third party retains the ability to install
326
+modified object code on the User Product (for example, the work has
327
+been installed in ROM).
328
+
329
+  The requirement to provide Installation Information does not include a
330
+requirement to continue to provide support service, warranty, or updates
331
+for a work that has been modified or installed by the recipient, or for
332
+the User Product in which it has been modified or installed.  Access to a
333
+network may be denied when the modification itself materially and
334
+adversely affects the operation of the network or violates the rules and
335
+protocols for communication across the network.
336
+
337
+  Corresponding Source conveyed, and Installation Information provided,
338
+in accord with this section must be in a format that is publicly
339
+documented (and with an implementation available to the public in
340
+source code form), and must require no special password or key for
341
+unpacking, reading or copying.
342
+
343
+  7. Additional Terms.
344
+
345
+  "Additional permissions" are terms that supplement the terms of this
346
+License by making exceptions from one or more of its conditions.
347
+Additional permissions that are applicable to the entire Program shall
348
+be treated as though they were included in this License, to the extent
349
+that they are valid under applicable law.  If additional permissions
350
+apply only to part of the Program, that part may be used separately
351
+under those permissions, but the entire Program remains governed by
352
+this License without regard to the additional permissions.
353
+
354
+  When you convey a copy of a covered work, you may at your option
355
+remove any additional permissions from that copy, or from any part of
356
+it.  (Additional permissions may be written to require their own
357
+removal in certain cases when you modify the work.)  You may place
358
+additional permissions on material, added by you to a covered work,
359
+for which you have or can give appropriate copyright permission.
360
+
361
+  Notwithstanding any other provision of this License, for material you
362
+add to a covered work, you may (if authorized by the copyright holders of
363
+that material) supplement the terms of this License with terms:
364
+
365
+    a) Disclaiming warranty or limiting liability differently from the
366
+    terms of sections 15 and 16 of this License; or
367
+
368
+    b) Requiring preservation of specified reasonable legal notices or
369
+    author attributions in that material or in the Appropriate Legal
370
+    Notices displayed by works containing it; or
371
+
372
+    c) Prohibiting misrepresentation of the origin of that material, or
373
+    requiring that modified versions of such material be marked in
374
+    reasonable ways as different from the original version; or
375
+
376
+    d) Limiting the use for publicity purposes of names of licensors or
377
+    authors of the material; or
378
+
379
+    e) Declining to grant rights under trademark law for use of some
380
+    trade names, trademarks, or service marks; or
381
+
382
+    f) Requiring indemnification of licensors and authors of that
383
+    material by anyone who conveys the material (or modified versions of
384
+    it) with contractual assumptions of liability to the recipient, for
385
+    any liability that these contractual assumptions directly impose on
386
+    those licensors and authors.
387
+
388
+  All other non-permissive additional terms are considered "further
389
+restrictions" within the meaning of section 10.  If the Program as you
390
+received it, or any part of it, contains a notice stating that it is
391
+governed by this License along with a term that is a further
392
+restriction, you may remove that term.  If a license document contains
393
+a further restriction but permits relicensing or conveying under this
394
+License, you may add to a covered work material governed by the terms
395
+of that license document, provided that the further restriction does
396
+not survive such relicensing or conveying.
397
+
398
+  If you add terms to a covered work in accord with this section, you
399
+must place, in the relevant source files, a statement of the
400
+additional terms that apply to those files, or a notice indicating
401
+where to find the applicable terms.
402
+
403
+  Additional terms, permissive or non-permissive, may be stated in the
404
+form of a separately written license, or stated as exceptions;
405
+the above requirements apply either way.
406
+
407
+  8. Termination.
408
+
409
+  You may not propagate or modify a covered work except as expressly
410
+provided under this License.  Any attempt otherwise to propagate or
411
+modify it is void, and will automatically terminate your rights under
412
+this License (including any patent licenses granted under the third
413
+paragraph of section 11).
414
+
415
+  However, if you cease all violation of this License, then your
416
+license from a particular copyright holder is reinstated (a)
417
+provisionally, unless and until the copyright holder explicitly and
418
+finally terminates your license, and (b) permanently, if the copyright
419
+holder fails to notify you of the violation by some reasonable means
420
+prior to 60 days after the cessation.
421
+
422
+  Moreover, your license from a particular copyright holder is
423
+reinstated permanently if the copyright holder notifies you of the
424
+violation by some reasonable means, this is the first time you have
425
+received notice of violation of this License (for any work) from that
426
+copyright holder, and you cure the violation prior to 30 days after
427
+your receipt of the notice.
428
+
429
+  Termination of your rights under this section does not terminate the
430
+licenses of parties who have received copies or rights from you under
431
+this License.  If your rights have been terminated and not permanently
432
+reinstated, you do not qualify to receive new licenses for the same
433
+material under section 10.
434
+
435
+  9. Acceptance Not Required for Having Copies.
436
+
437
+  You are not required to accept this License in order to receive or
438
+run a copy of the Program.  Ancillary propagation of a covered work
439
+occurring solely as a consequence of using peer-to-peer transmission
440
+to receive a copy likewise does not require acceptance.  However,
441
+nothing other than this License grants you permission to propagate or
442
+modify any covered work.  These actions infringe copyright if you do
443
+not accept this License.  Therefore, by modifying or propagating a
444
+covered work, you indicate your acceptance of this License to do so.
445
+
446
+  10. Automatic Licensing of Downstream Recipients.
447
+
448
+  Each time you convey a covered work, the recipient automatically
449
+receives a license from the original licensors, to run, modify and
450
+propagate that work, subject to this License.  You are not responsible
451
+for enforcing compliance by third parties with this License.
452
+
453
+  An "entity transaction" is a transaction transferring control of an
454
+organization, or substantially all assets of one, or subdividing an
455
+organization, or merging organizations.  If propagation of a covered
456
+work results from an entity transaction, each party to that
457
+transaction who receives a copy of the work also receives whatever
458
+licenses to the work the party's predecessor in interest had or could
459
+give under the previous paragraph, plus a right to possession of the
460
+Corresponding Source of the work from the predecessor in interest, if
461
+the predecessor has it or can get it with reasonable efforts.
462
+
463
+  You may not impose any further restrictions on the exercise of the
464
+rights granted or affirmed under this License.  For example, you may
465
+not impose a license fee, royalty, or other charge for exercise of
466
+rights granted under this License, and you may not initiate litigation
467
+(including a cross-claim or counterclaim in a lawsuit) alleging that
468
+any patent claim is infringed by making, using, selling, offering for
469
+sale, or importing the Program or any portion of it.
470
+
471
+  11. Patents.
472
+
473
+  A "contributor" is a copyright holder who authorizes use under this
474
+License of the Program or a work on which the Program is based.  The
475
+work thus licensed is called the contributor's "contributor version".
476
+
477
+  A contributor's "essential patent claims" are all patent claims
478
+owned or controlled by the contributor, whether already acquired or
479
+hereafter acquired, that would be infringed by some manner, permitted
480
+by this License, of making, using, or selling its contributor version,
481
+but do not include claims that would be infringed only as a
482
+consequence of further modification of the contributor version.  For
483
+purposes of this definition, "control" includes the right to grant
484
+patent sublicenses in a manner consistent with the requirements of
485
+this License.
486
+
487
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+patent license under the contributor's essential patent claims, to
489
+make, use, sell, offer for sale, import and otherwise run, modify and
490
+propagate the contents of its contributor version.
491
+
492
+  In the following three paragraphs, a "patent license" is any express
493
+agreement or commitment, however denominated, not to enforce a patent
494
+(such as an express permission to practice a patent or covenant not to
495
+sue for patent infringement).  To "grant" such a patent license to a
496
+party means to make such an agreement or commitment not to enforce a
497
+patent against the party.
498
+
499
+  If you convey a covered work, knowingly relying on a patent license,
500
+and the Corresponding Source of the work is not available for anyone
501
+to copy, free of charge and under the terms of this License, through a
502
+publicly available network server or other readily accessible means,
503
+then you must either (1) cause the Corresponding Source to be so
504
+available, or (2) arrange to deprive yourself of the benefit of the
505
+patent license for this particular work, or (3) arrange, in a manner
506
+consistent with the requirements of this License, to extend the patent
507
+license to downstream recipients.  "Knowingly relying" means you have
508
+actual knowledge that, but for the patent license, your conveying the
509
+covered work in a country, or your recipient's use of the covered work
510
+in a country, would infringe one or more identifiable patents in that
511
+country that you have reason to believe are valid.
512
+
513
+  If, pursuant to or in connection with a single transaction or
514
+arrangement, you convey, or propagate by procuring conveyance of, a
515
+covered work, and grant a patent license to some of the parties
516
+receiving the covered work authorizing them to use, propagate, modify
517
+or convey a specific copy of the covered work, then the patent license
518
+you grant is automatically extended to all recipients of the covered
519
+work and works based on it.
520
+
521
+  A patent license is "discriminatory" if it does not include within
522
+the scope of its coverage, prohibits the exercise of, or is
523
+conditioned on the non-exercise of one or more of the rights that are
524
+specifically granted under this License.  You may not convey a covered
525
+work if you are a party to an arrangement with a third party that is
526
+in the business of distributing software, under which you make payment
527
+to the third party based on the extent of your activity of conveying
528
+the work, and under which the third party grants, to any of the
529
+parties who would receive the covered work from you, a discriminatory
530
+patent license (a) in connection with copies of the covered work
531
+conveyed by you (or copies made from those copies), or (b) primarily
532
+for and in connection with specific products or compilations that
533
+contain the covered work, unless you entered into that arrangement,
534
+or that patent license was granted, prior to 28 March 2007.
535
+
536
+  Nothing in this License shall be construed as excluding or limiting
537
+any implied license or other defenses to infringement that may
538
+otherwise be available to you under applicable patent law.
539
+
540
+  12. No Surrender of Others' Freedom.
541
+
542
+  If conditions are imposed on you (whether by court order, agreement or
543
+otherwise) that contradict the conditions of this License, they do not
544
+excuse you from the conditions of this License.  If you cannot convey a
545
+covered work so as to satisfy simultaneously your obligations under this
546
+License and any other pertinent obligations, then as a consequence you may
547
+not convey it at all.  For example, if you agree to terms that obligate you
548
+to collect a royalty for further conveying from those to whom you convey
549
+the Program, the only way you could satisfy both those terms and this
550
+License would be to refrain entirely from conveying the Program.
551
+
552
+  13. Use with the GNU Affero General Public License.
553
+
554
+  Notwithstanding any other provision of this License, you have
555
+permission to link or combine any covered work with a work licensed
556
+under version 3 of the GNU Affero General Public License into a single
557
+combined work, and to convey the resulting work.  The terms of this
558
+License will continue to apply to the part which is the covered work,
559
+but the special requirements of the GNU Affero General Public License,
560
+section 13, concerning interaction through a network will apply to the
561
+combination as such.
562
+
563
+  14. Revised Versions of this License.
564
+
565
+  The Free Software Foundation may publish revised and/or new versions of
566
+the GNU General Public License from time to time.  Such new versions will
567
+be similar in spirit to the present version, but may differ in detail to
568
+address new problems or concerns.
569
+
570
+  Each version is given a distinguishing version number.  If the
571
+Program specifies that a certain numbered version of the GNU General
572
+Public License "or any later version" applies to it, you have the
573
+option of following the terms and conditions either of that numbered
574
+version or of any later version published by the Free Software
575
+Foundation.  If the Program does not specify a version number of the
576
+GNU General Public License, you may choose any version ever published
577
+by the Free Software Foundation.
578
+
579
+  If the Program specifies that a proxy can decide which future
580
+versions of the GNU General Public License can be used, that proxy's
581
+public statement of acceptance of a version permanently authorizes you
582
+to choose that version for the Program.
583
+
584
+  Later license versions may give you additional or different
585
+permissions.  However, no additional obligations are imposed on any
586
+author or copyright holder as a result of your choosing to follow a
587
+later version.
588
+
589
+  15. Disclaimer of Warranty.
590
+
591
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+  16. Limitation of Liability.
601
+
602
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+SUCH DAMAGES.
611
+
612
+  17. Interpretation of Sections 15 and 16.
613
+
614
+  If the disclaimer of warranty and limitation of liability provided
615
+above cannot be given local legal effect according to their terms,
616
+reviewing courts shall apply local law that most closely approximates
617
+an absolute waiver of all civil liability in connection with the
618
+Program, unless a warranty or assumption of liability accompanies a
619
+copy of the Program in return for a fee.
620
+
621
+                     END OF TERMS AND CONDITIONS
622
+
623
+            How to Apply These Terms to Your New Programs
624
+
625
+  If you develop a new program, and you want it to be of the greatest
626
+possible use to the public, the best way to achieve this is to make it
627
+free software which everyone can redistribute and change under these terms.
628
+
629
+  To do so, attach the following notices to the program.  It is safest
630
+to attach them to the start of each source file to most effectively
631
+state the exclusion of warranty; and each file should have at least
632
+the "copyright" line and a pointer to where the full notice is found.
633
+
634
+    <one line to give the program's name and a brief idea of what it does.>
635
+    Copyright (C) <year>  <name of author>
636
+
637
+    This program is free software: you can redistribute it and/or modify
638
+    it under the terms of the GNU General Public License as published by
639
+    the Free Software Foundation, either version 3 of the License, or
640
+    (at your option) any later version.
641
+
642
+    This program is distributed in the hope that it will be useful,
643
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
645
+    GNU General Public License for more details.
646
+
647
+    You should have received a copy of the GNU General Public License
648
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
649
+
650
+Also add information on how to contact you by electronic and paper mail.
651
+
652
+  If the program does terminal interaction, make it output a short
653
+notice like this when it starts in an interactive mode:
654
+
655
+    <program>  Copyright (C) <year>  <name of author>
656
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+    This is free software, and you are welcome to redistribute it
658
+    under certain conditions; type `show c' for details.
659
+
660
+The hypothetical commands `show w' and `show c' should show the appropriate
661
+parts of the General Public License.  Of course, your program's commands
662
+might be different; for a GUI interface, you would use an "about box".
663
+
664
+  You should also get your employer (if you work as a programmer) or school,
665
+if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+For more information on this, and how to apply and follow the GNU GPL, see
667
+<http://www.gnu.org/licenses/>.
668
+
669
+  The GNU General Public License does not permit incorporating your program
670
+into proprietary programs.  If your program is a subroutine library, you
671
+may consider it more useful to permit linking proprietary applications with
672
+the library.  If this is what you want to do, use the GNU Lesser General
673
+Public License instead of this License.  But first, please read
674
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

+ 1
- 0
README View File

@@ -0,0 +1 @@
1
+A DBus daemon and Gtk3 frontend for libalpm written in vala

+ 1
- 0
TODO View File

@@ -0,0 +1 @@
1
+

+ 3
- 0
create_pot_file.sh View File

@@ -0,0 +1,3 @@
1
+#! /bin/sh
2
+
3
+xgettext --from-code=UTF-8 --files-from=./files_to_translate --keyword=translatable --keyword=_ --output=pamac.pot

+ 131
- 0
data/applications/pamac-install.desktop View File

@@ -0,0 +1,131 @@
1
+[Desktop Entry]
2
+Name=Software Install
3
+Name[af]=Sagteware installeer
4
+Name[ar]=تثبيت البرامج
5
+Name[as]=চফ্টৱেৰ ইনস্টল
6
+Name[ast]=Instalador de software
7
+Name[be]=Усталяванне апраграмавання
8
+Name[bg]=Инсталиране на софтуер
9
+Name[bn_IN]=সফ্টওয়্যার ইনস্টলেশন
10
+Name[ca]=Instal·lació de programari
11
+Name[ca@valencia]=Instal·lació de programari
12
+Name[cs]=Instalace softwaru
13
+Name[da]=Softwareinstallation
14
+Name[de]=Software-Installation
15
+Name[el]=Εγκατάσταση λογισμικού
16
+Name[en_GB]=Software Install
17
+Name[es]=Instalador de software
18
+Name[et]=Tarkvara paigaldamine
19
+Name[eu]=Paketeen instalatzailea
20
+Name[fa]=نصب نرم‌افزار
21
+Name[fi]=Ohjelmistojen asennus
22
+Name[fr]=Installation de logiciels
23
+Name[gl]=Instalador de software
24
+Name[gu]=સોફ્ટવેર સ્થાપન
25
+Name[he]=התקנת תכנה
26
+Name[hi]=सॉफ्टवेयर संस्थापित करें
27
+Name[hu]=Szoftvertelepítő
28
+Name[id]=Pasang Perangkat Lunak
29
+Name[it]=Installatore software
30
+Name[ja]=ソフトウェアのインストール
31
+Name[kn]=ತಂತ್ರಾಂಶ ಅನುಸ್ಥಾಪನೆ
32
+Name[ko]=소프트웨어 설치
33
+Name[lt]=Programinės įrangos įdiegimas
34
+Name[lv]=Programmatūras instalēšana
35
+Name[mk]=Инсталација на софтвер
36
+Name[ml]=സോഫ്റ്റ്‌വെയര്‍ ഇന്‍സ്റ്റോള്‍
37
+Name[mr]=सॉफ्टवेअर प्रतिष्ठापन
38
+Name[nb]=Programvareinstallasjon
39
+Name[nl]=Software-installatie
40
+Name[pa]=ਸਾਫਟਵੇਅਰ ਇੰਸਟਾਲ ਕਰੋ
41
+Name[pl]=Instalacja oprogramowania
42
+Name[pt]=Instalar Software
43
+Name[pt_BR]=Instalação de programas
44
+Name[ru]=Установка программ
45
+Name[sk]=Inštalácia softvéru
46
+Name[sl]=Nameščanje programske opreme
47
+Name[sr]=Инсталација софтвера
48
+Name[sr@latin]=Instalacija softvera
49
+Name[sv]=Programinstallation
50
+Name[ta]=மென்பொருள் நிறுவல்
51
+Name[te]=సాఫ్ట్‍వేర్ స్థాపన
52
+Name[th]=ติดตั้งซอฟต์แวร์
53
+Name[tr]=Yazılım Kur
54
+Name[ug]=يۇمشاق دېتال ئورنات
55
+Name[uk]=Установлення програм
56
+Name[vi]=Cài phần mềm
57
+Name[zh_CN]=软件安装程序
58
+Name[zh_HK]=軟件安裝
59
+Name[zh_TW]=軟體安裝
60
+Comment=Install selected software on the system
61
+Comment[af]=Installeer gekose sagteware op die stelsel
62
+Comment[ar]=ثبت البرمجيات المختارة على النظام
63
+Comment[as]=চিস্টেমত নিৰ্বাচিত চফ্টৱেৰ ইনস্টল কৰক
64
+Comment[ast]=Instalar el software escoyíu nel sistema
65
+Comment[be]=Усталяваць вылучанае апраграмаванне ў сістэму
66
+Comment[bg]=Инсталиране на избрания софтуер на системата
67
+Comment[bn]=সিস্টেমের মধ্যে নির্বাচিত সফ্টওয়্যার ইনস্টল
68
+Comment[bn_IN]=সিস্টেমের মধ্যে নির্বাচিত সফ্টওয়্যার ইনস্টল করুন
69
+Comment[ca]=Instal·la el programari seleccionat en el sistema
70
+Comment[ca@valencia]=Instal·la el programari seleccionat en el sistema
71
+Comment[cs]=Instalovat vybraný software do tohoto systému
72
+Comment[da]=Installér valgt software på systemet
73
+Comment[de]=Ausgewählte Software auf dem System installieren
74
+Comment[el]=Εγκατάσταση του επιλεγμένου λογισμικού στο σύστημα
75
+Comment[en@shaw]=𐑦𐑯𐑕𐑑𐑷𐑤 𐑕𐑩𐑤𐑧𐑒𐑑𐑩𐑛 𐑕𐑪𐑓𐑑𐑢𐑺 𐑪𐑯 𐑞 𐑕𐑦𐑕𐑑𐑩𐑥
76
+Comment[en_GB]=Install selected software on the system
77
+Comment[eo]=Instali elektitan programaron sur the sistemo
78
+Comment[es]=Instalar el software seleccionado en el sistema
79
+Comment[et]=Valitud tarkvara paigaldamine arvutisse
80
+Comment[eu]=Instalatu hautatutako softwarea sisteman
81
+Comment[fa]=نصب نرم‌افزار انتخاب شده بر روی سیستم
82
+Comment[fi]=Asenna valitut ohjelmistot järjestelmään
83
+Comment[fr]=Installer le logiciel sélectionné sur le système
84
+Comment[gl]=Instalar o programa seleccionado no sistema
85
+Comment[gu]=સિસ્ટમ પર પસંદ થયેલ સોફ્ટવેરને સ્થાપિત કરો
86
+Comment[he]=התקנת התוכנות הנבחרות על המערכת
87
+Comment[hi]=सिस्टम पर चयनित सॉफ्टवेयर संस्थापित करें
88
+Comment[hu]=A kijelölt szoftverek telepítése a rendszerre
89
+Comment[id]=Pasang perangkat lunak yang dipilih pada sistem
90
+Comment[it]=Installa il software selezionato sul sistema
91
+Comment[ja]=選択されたソフトウェアをシステムにインストールします
92
+Comment[kn]=ಆರಿಸಲಾದ ತಂತ್ರಾಂಶವನ್ನು ಗಣಕದಲ್ಲಿ ಅನುಸ್ಥಾಪಿಸು
93
+Comment[ko]=선택한 소프트웨어를 시스템에 설치합니다
94
+Comment[lt]=Įdiegti pasirinktą programinę įrangą sistemoje
95
+Comment[lv]=Instalēt izvēlēto programmatūru sistēmā
96
+Comment[mk]=Инсталирај го избраниот софтвер на системот
97
+Comment[ml]=തെരഞ്ഞെടുത്ത സോഫ്റ്റ്‌വെയറുകള്‍ സിസ്റ്റമില്‍ ഇന്‍സ്റ്റോള്‍ ചെയ്യുക
98
+Comment[mr]=नीवडलेले सॉफ्टवेअर प्रणालीवर प्रतिष्ठापीत करा
99
+Comment[nb]=Installer valgt programvare på systemet
100
+Comment[nl]=Geselecteerde software op het systeem installeren
101
+Comment[nn]=Installer vald programvare på systemet
102
+Comment[or]=ତନ୍ତ୍ରରେ ବଚ୍ଛିତ ସଫ୍ଟୱେର ସ୍ଥାପନ କରନ୍ତୁ
103
+Comment[pa]=ਚੁਣੇ ਸਾਫਟਵੇਅਰ ਸਿਸਟਮ ਉੱਤੇ ਇੰਸਟਾਲ ਕਰੋ
104
+Comment[pl]=Instalacja wybranego oprogramowania w systemie
105
+Comment[pt]=Instalar software seleccionado no sistema
106
+Comment[pt_BR]=Instale o programa selecionado no sistema
107
+Comment[ro]=Instalează pachetele selectate pe sistem
108
+Comment[ru]=Установить в систему выбранные программы
109
+Comment[sk]=Nainštalovať na systéme zvolený softvér
110
+Comment[sl]=Namestitev izbrane programske opreme v sistem
111
+Comment[sr]=Инсталирајте изабране програме на систем
112
+Comment[sr@latin]=Instalirajte izabrane programe na sistem
113
+Comment[sv]=Installera markerad programvara på systemet
114
+Comment[ta]=தேர்ந்தெடுக்கப்பட்ட மென்பொருளை கணினியில் நிறுவவும்
115
+Comment[te]=ఎంచుకున్న సాఫ్ట్‍‌వేర్‌ను వ్యవస్థ నందు స్థాపించు
116
+Comment[th]=ติดตั้งซอฟต์แวร์ที่เลือกไว้ลงในระบบ
117
+Comment[tr]=Seçili yazılımı sisteme kur
118
+Comment[ug]=تاللانغان يۇمشاق دېتالنى سىستېمىغا ئورنات
119
+Comment[uk]=Встановити у систему вибрані програми
120
+Comment[vi]=Cài đặt phần mềm đã chọn vào hệ thống
121
+Comment[zh_CN]=在系统中安装选定的软件
122
+Comment[zh_HK]=安裝選取的軟件到系統中
123
+Comment[zh_TW]=安裝選取的軟體到系統中
124
+Categories=System;
125
+Exec=pamac-install %F
126
+Terminal=false
127
+Type=Application
128
+Icon=system-software-install
129
+StartupNotify=true
130
+NoDisplay=true
131
+MimeType=application/x-xz-compressed-tar;

+ 139
- 0
data/applications/pamac-manager.desktop View File

@@ -0,0 +1,139 @@
1
+[Desktop Entry]
2
+Name=Add/Remove Software
3
+Name[af]=Voeg by/verwyder sagteware
4
+Name[ar]=إضافة وإزالة البرمجيات
5
+Name[as]=চালনাজ্ঞান যোগ কৰক/আঁতৰাই দিয়ক
6
+Name[ast]=Amestar/Quitar software
7
+Name[be]=Дадаць/выдаліць апраграмаванне
8
+Name[bg]=Инсталиране/деинсталиране на софтуер
9
+Name[bn]=সফ্টওয়্যার যোগ/অপসারণ
10
+Name[bn_IN]=সফ্টওয়্যার যোগ/অপসারণ করুন
11
+Name[ca]=Afegeix/Suprimeix programari
12
+Name[ca@valencia]=Afig/Suprimeix programari
13
+Name[cs]=Přidat/odebrat software
14
+Name[da]=Tilføj/fjern software
15
+Name[de]=Software hinzufügen/entfernen
16
+Name[el]=Προσθαφαίρεση λογισμικού
17
+Name[en@shaw]=𐑨𐑛/𐑮𐑦𐑥𐑵𐑝 𐑕𐑪𐑓𐑑𐑢𐑺
18
+Name[en_GB]=Add/Remove Software
19
+Name[eo]=Aldoni/forigi instalitan pogramaron
20
+Name[es]=Añadir/Quitar software
21
+Name[et]=Tarkvara lisamine ja eemaldamine
22
+Name[eu]=Gehitu/Kendu softwarea
23
+Name[fa]=افزودن/حذف نرم‌افزار
24
+Name[fi]=Lisää tai poista ohjelmistoja
25
+Name[fr]=Ajouter/supprimer des logiciels
26
+Name[ga]=Cuir Leis/Bain Bogearraí
27
+Name[gl]=Engadir ou eliminar programas
28
+Name[gu]=સોફ્ટવેરને ઉમેરો/દૂર કરો
29
+Name[he]=הוספת/הסרת תכנה
30
+Name[hi]=सॉफ्टवेयर जोड़ें/हटायें
31
+Name[hu]=Szoftver telepítése/eltávolítása
32
+Name[id]=Tambah/Hapus Piranti Lunak
33
+Name[it]=Aggiungi/Rimuovi software
34
+Name[ja]=ソフトウェアの追加と削除
35
+Name[kn]=ತಂತ್ರಾಂಶವನ್ನು ಸೇರಿಸು ಅಥವ ತೆಗೆ
36
+Name[ko]=소프트웨어 추가/제거
37
+Name[lt]=Įdiegti ar šalinti programinę įrangą
38
+Name[lv]=Pievienot/Izņemt programmatūru
39
+Name[mk]=Инсталирај/избриши софтвер
40
+Name[ml]=സോഫ്റ്റ്‌വെയര്‍ ചേര്‍ക്കുക/നീക്കം ചെയ്യുക
41
+Name[mr]=सॉफ्टवेअर जोडा/काढून टाका
42
+Name[ms]=Menambah/Memadam perisian
43
+Name[nb]=Legg til/fjern programvare
44
+Name[nl]=Software installeren/verwijderen
45
+Name[nn]=Legg til/fjern programvare
46
+Name[or]=ସଫ୍ଟୱେର ଯୋଗ/ଅପସାରଣ କରନ୍ତୁ
47
+Name[pa]=ਸਾਫਟਵੇਅਰ ਸ਼ਾਮਲ/ਹਟਾਓ
48
+Name[pl]=Dodanie/usuwanie oprogramowania
49
+Name[pt]=Adicionar/Remover Software
50
+Name[pt_BR]=Adicionar/remover programas
51
+Name[ro]=Adăugare sau ștergere programe
52
+Name[ru]=Установка и удаление программ
53
+Name[sk]=Pridať/odstrániť softvér
54
+Name[sl]=Upravljanje programske opreme
55
+Name[sr]=Додај-уклони програме
56
+Name[sr@latin]=Dodaj-ukloni programe
57
+Name[sv]=Lägg till/Ta bort programvara
58
+Name[ta]=மென்பொருளை சேர்த்தல்/நீக்குதல்
59
+Name[te]=సాఫ్ట్‍వేర్ జతచేయి/తీసివేయి
60
+Name[th]=เพิ่ม/ลบซอฟต์แวร์
61
+Name[tr]=Yazılım Ekle/Kaldır
62
+Name[ug]=يۇمشاق دېتالنى قوش/ئۆچۈر
63
+Name[uk]=Встановлення та вилучення програм
64
+Name[vi]=Thêm/Gỡ phần mềm
65
+Name[zh_CN]=添加/删除软件
66
+Name[zh_HK]=加入或移除軟件
67
+Name[zh_TW]=加入或移除軟體
68
+Comment=Add or remove software installed on the system
69
+Comment[af]=Voeg by of verwyder sagteware geïnstalleer op die stelsel
70
+Comment[ar]=أضف أو أزل البرمجيات المثبتة على النظام
71
+Comment[as]=ব্যৱস্থাপ্ৰণালীত সংস্থাপিত চালনাজ্ঞান উন্নয়ন কৰক
72
+Comment[ast]=Amestar o quitar software instaláu nel sistema
73
+Comment[be]=Дадаць ці выдаліць апраграмаванне, усталяванае ў сістэме
74
+Comment[bg]=Инсталиране и деинсталиране на софтуер към системата
75
+Comment[bn]=সিস্টেমে সফ্টওয়্যার যোগ করুন অথবা ইনস্টল করা সফ্টওয়্যার অপসারণ
76
+Comment[bn_IN]=সিস্টেমে সফ্টওয়্যার যোগ করুন অথবা ইনস্টল করা সফ্টওয়্যার সরিয়ে ফেলুন
77
+Comment[ca]=Afegeix o suprimeix programari instal·lat en el sistema
78
+Comment[ca@valencia]=Afig o suprimeix programari instal·lat en el sistema
79
+Comment[cs]=Přidat nebo odebrat software instalovaný v systému
80
+Comment[da]=Tilføj eller fjern software installeret på systemet
81
+Comment[de]=Auf dem System installierte Software aktualisieren oder neue Software hinzufügen
82
+Comment[el]=Προσθαφαίρεση λογισμικού στο σύστημα
83
+Comment[en@shaw]=𐑨𐑛 𐑹 𐑮𐑦𐑥𐑵𐑝 𐑕𐑪𐑓𐑑𐑢𐑺 𐑦𐑯𐑕𐑑𐑷𐑤𐑛 𐑪𐑯 𐑞 𐑕𐑦𐑕𐑑𐑩𐑥
84
+Comment[en_GB]=Add or remove software installed on the system
85
+Comment[eo]=Aldoni aŭ forigi instalitan pogramaron sur via sistemo
86
+Comment[es]=Añadir o quitar software instalado en el sistema
87
+Comment[et]=Arvutisse paigaldatud tarkvara lisamine ja eemaldamine
88
+Comment[eu]=Gehitu edo kendu sisteman instalatutako softwarea
89
+Comment[fa]=حذف یا افزودن نرم‌افزارهای نصب شده بر روی این سیستم
90
+Comment[fi]=Lisää tai poista järjestelmään asennettuja ohjelmistoja
91
+Comment[fr]=Ajouter ou supprimer des logiciels installés sur le système
92
+Comment[gl]=Engadir e eliminar o software instalado no sistema
93
+Comment[gu]=સિસ્ટમ પર સ્થાપિત થયેલ સોફ્ટવેરને ઉમેરો અથવા દૂર કરો
94
+Comment[he]=הוספה או הסרה של יישומי המערכת
95
+Comment[hi]=सिस्टम पर संस्थापित सॉफ्टवेयर जोड़ें या हटाएँ
96
+Comment[hu]=Szoftverek rendszerre telepítése vagy eltávolítása
97
+Comment[id]=Tambah atau hapus perangkat lunak yang terpasang pada sistem
98
+Comment[it]=Aggiunge o rimuove software installato sul sistema
99
+Comment[ja]=システムにインストールされたパッケージの追加と削除
100
+Comment[kn]=ಗಣಕಕ್ಕೆ ತಂತ್ರಾಂಶವನ್ನು ಸೇರಿಸು ಅಥವ ಅನುಸ್ಥಾಪಿತಗೊಂಡಿರುವುದನ್ನು ತೆಗೆದು ಹಾಕು
101
+Comment[ko]=시스템에 설치하는 소프트웨어를 추가하거나 제거합니다
102
+Comment[lt]=Įdiegti ar šalinti sistemoje įdiegtą programinę įrangą
103
+Comment[lv]=Pievienot vai izņemt programmatūru sistēmā
104
+Comment[mk]=Инсталирајте или избришете софтвер на системот
105
+Comment[ml]=സിസ്റ്റത്തില്‍ ഇന്‍സ്റ്റോള്‍ ചെയ്തിരിക്കുന്ന സോഫ്റ്റ്‌വെയര്‍ ചേര്‍ക്കുക അല്ലെങ്കില്‍ നീക്കം ചെയ്യുക
106
+Comment[mr]=प्रणालीवर प्रतिष्ठापीत सॉफ्टवेअर समावेष करा किंवा काढूण टाका
107
+Comment[ms]=Menambah atau memadam perisian yang dipasang pada sistem
108
+Comment[nb]=Legg til eller fjern programvare på systemet
109
+Comment[nl]=Software installeren op, of verwijderen van het systeem
110
+Comment[nn]=Legg til eller fjern programvare som er installert på systemet
111
+Comment[or]=ତନ୍ତ୍ରରେ ସ୍ଥାପିତ ସଫ୍ଟୱେରରେ ଯୋଗକରନ୍ତୁ କିମ୍ବା କାଢ଼ି ଦିଅନ୍ତୁ
112
+Comment[pa]=ਸਿਸਟਮ ਉੱਤੇ ਸਾਫਟਵੇਅਰ ਇੰਸਟਾਲ ਕਰੋ ਜਾਂ ਇੰਸਟਾਲ ਕੀਤੇ ਹਟਾਓ
113
+Comment[pl]=Instalowanie lub usuwanie oprogramowania zainstalowanego w systemie
114
+Comment[pt]=Adicionar ou remover software instalado no sistema
115
+Comment[pt_BR]=Adicione ou remova programas instalados no sistema
116
+Comment[ro]=Adăugați sau ștergeți programe instalate pe sistem
117
+Comment[ru]=Установка и удаление программ, установленных в системе
118
+Comment[sk]=Pridať alebo odstrániť softvér nainštalovaný na systéme
119
+Comment[sl]=Nameščanje in odstranjevanje programske opreme sistema
120
+Comment[sr]=Додајте или уклоните програме инсталиране на овом систему
121
+Comment[sr@latin]=Dodajte ili uklonite programe instalirane na ovom sistemu
122
+Comment[sv]=Lägg till eller ta bort programvara installerad på systemet
123
+Comment[ta]=கணினியில் நிறுவப்பட்ட மென்பொருளை சேர்க்கவும் அல்லது நீக்கவும்
124
+Comment[te]=ఈ వ్యవస్థ నందు స్థాపించిన సాఫ్ట్‍వేర్‌ను జతచేయి లేదా తీసివేయి
125
+Comment[th]=เพิ่มหรือลบซอฟต์แวร์ที่ติดตั้งในระบบ
126
+Comment[tr]=Sisteminizde yüklü yazılımları ekleyin veya kaldırın
127
+Comment[ug]=سىستېمىڭىزغا ئورنىتىلغان يۇمشاق دېتاللارنى قوشىدۇ ياكى ئۆچۈرىدۇ
128
+Comment[uk]=Встановлення та вилучення програм у системі
129
+Comment[vi]=Thêm hoặc gỡ phần mềm cài đặt trên hệ thống
130
+Comment[zh_CN]=添加或删除系统中安装的软件
131
+Comment[zh_HK]=加入或移除系統上安裝的軟件
132
+Comment[zh_TW]=加入或移除系統上安裝的軟體
133
+Icon=system-software-install
134
+Exec=pamac-manager
135
+Terminal=false
136
+Type=Application
137
+Categories=GNOME;GTK;System;
138
+#NotShowIn=KDE;
139
+StartupNotify=true

+ 7
- 0
data/applications/pamac-tray.desktop View File

@@ -0,0 +1,7 @@
1
+[Desktop Entry]
2
+Name=Update Notifier
3
+Icon=update-notifier
4
+Exec=pamac-tray
5
+Terminal=false
6
+Type=Application
7
+StartupNotify=true

+ 135
- 0
data/applications/pamac-updater.desktop View File

@@ -0,0 +1,135 @@
1
+[Desktop Entry]
2
+Name=Software Update
3
+Name[af]=Sagtewarebywerking
4
+Name[ar]=تحديث البرمجيات
5
+Name[as]=চালনাজ্ঞান উন্নয়ন ব্যৱস্থা
6
+Name[ast]=Anovamientu de software
7
+Name[be]=Абнаўленне апраграмавання
8
+Name[bg]=Обновление на софтуера
9
+Name[bn]=সফ্টওয়্যার হালনাগাদ
10
+Name[bn_IN]=সফ্টওয়্যার আপডেট ব্যবস্থা
11
+Name[ca]=Actualització de programari
12
+Name[ca@valencia]=Actualització de programari
13
+Name[cs]=Aktualizace softwaru
14
+Name[da]=Softwareopdatering
15
+Name[de]=Software-Aktualisierungen
16
+Name[el]=Ενημέρωση λογισμικού
17
+Name[en@shaw]=𐑕𐑪𐑓𐑑𐑢𐑺 𐑳𐑐𐑛𐑱𐑑
18
+Name[en_GB]=Software Update
19
+Name[eo]=Programar-ĝistatigo
20
+Name[es]=Actualización de software
21
+Name[et]=Tarkvarauuendus
22
+Name[eu]=Softwarearen eguneraketa
23
+Name[fa]=بروزرسانی نرم‌افزار
24
+Name[fi]=Ohjelmistopäivitykset
25
+Name[fr]=Mise à jour des logiciels
26
+Name[gl]=Actualización de software
27
+Name[gu]=સોફ્ટવેર સુધારા
28
+Name[he]=עדכון תכנה
29
+Name[hi]=सॉफ्टवेयर अद्यतन
30
+Name[hu]=Szoftverfrissítés
31
+Name[id]=Pembaruan Perangkat Lunak
32
+Name[it]=Aggiornamento software
33
+Name[ja]=ソフトウェアの更新
34
+Name[kn]=ತಂತ್ರಾಂಶ ಅಪ್‌ಡೇಟ್‌
35
+Name[ko]=소프트웨어 업데이트
36
+Name[lt]=Programinės įrangos atnaujinimas
37
+Name[lv]=Programmatūras atjaunināšana
38
+Name[mk]=Ажурирање на софтвер
39
+Name[ml]=സോഫ്റ്റ്‌വെയര്‍ പരിഷ്കാരം
40
+Name[mr]=सॉफ्टवेअर अद्ययावत
41
+Name[nb]=Programvareoppdatering
42
+Name[nl]=Software bijwerken
43
+Name[nn]=Programvareoppdatering
44
+Name[or]=ସଫ୍ଟୱେର ଅଦ୍ୟତନ
45
+Name[pa]=ਸਾਫਟਵੇਅਰ ਅੱਪਡੇਟ
46
+Name[pl]=Aktualizacja oprogramowania
47
+Name[pt]=Actualização de Software
48
+Name[pt_BR]=Atualizações de programas
49
+Name[ro]=Actualizări de programe
50
+Name[ru]=Обновление программ
51
+Name[sk]=Aktualizácia softvéru
52
+Name[sl]=Posodobitev programske opreme
53
+Name[sr]=Ажурирање програма
54
+Name[sr@latin]=Ažuriranje programa
55
+Name[sv]=Programuppdatering
56
+Name[ta]=மென்பொருள் மேம்படுத்தல்
57
+Name[te]=సాప్ట్‍వేర్ నవీకరణ
58
+Name[th]=ปรับรุ่นซอฟต์แวร์
59
+Name[tr]=Yazılım Güncelleme
60
+Name[ug]=يۇمشاق دېتال يېڭىلاش
61
+Name[uk]=Оновлення програм
62
+Name[vi]=Bản cập nhật phần mềm
63
+Name[zh_CN]=软件更新
64
+Name[zh_HK]=軟件更新
65
+Name[zh_TW]=軟體更新
66
+Comment=Update software installed on the system
67
+Comment[af]=Werk geïnstalleer sagteware op die stelsel by
68
+Comment[ar]=حدّث الحزم المُثبّتة على النظام
69
+Comment[as]=ব্যৱস্থাপ্ৰণালীত সংস্থাপিত চালনাজ্ঞান উন্নয়ন কৰক
70
+Comment[ast]=Anovar el software instaláu nel sistema
71
+Comment[be]=Абнаўленне апраграмавання, усталяванага ў сістэме
72
+Comment[bg]=Обновяване на софтуера инсталиран върху системата
73
+Comment[bn]=সিস্টেমে ইনস্টলকৃত সফ্টওয়্যার হালনাগাদ
74
+Comment[bn_IN]=সিস্টেমে ইনস্টল থাকা সফ্টওয়্যার আপডেট করুন
75
+Comment[ca]=Actualitza el programari instal·lat en el sistema
76
+Comment[ca@valencia]=Actualitza el programari instal·lat en el sistema
77
+Comment[cs]=Aktualizovat software instalovaný v tomto systému
78
+Comment[da]=Opdatér software installeret på systemet
79
+Comment[de]=Auf dem System installierte Software aktualisieren
80
+Comment[el]=Ενημέρωση εγκατεστημένου λογισμικού
81
+Comment[en@shaw]=𐑳𐑐𐑛𐑱𐑑 𐑕𐑪𐑓𐑑𐑢𐑺 𐑦𐑯𐑕𐑑𐑷𐑤𐑛 𐑪𐑯 𐑞 𐑕𐑦𐑕𐑑𐑩𐑥
82
+Comment[en_GB]=Update software installed on the system
83
+Comment[es]=Actualizar el software instalado en el sistema
84
+Comment[et]=Süsteemi paigaldatud tarkvara uuendamine
85
+Comment[eu]=Eguneratu sisteman instalatutako softwarea
86
+Comment[fa]=بروزرسانی نرم‌افزار نصب شده بر روی سیستم
87
+Comment[fi]=Päivitä järjestelmään asennettuja ohjelmistoja
88
+Comment[fr]=Met à jour les logiciels installés sur le système
89
+Comment[gl]=Actualizar o software instalado no sistema
90
+Comment[gu]=સિસ્ટમ પર સ્થાપિત થયેલ સોફ્ટવેરને સુધારો
91
+Comment[he]=עדכון תוכנות המותקנות על המערכת
92
+Comment[hi]=सिस्टम पर संस्थापित सॉफ्टवेयर अद्यतन करें
93
+Comment[hu]=A rendszerre telepített szoftverek frissítése
94
+Comment[id]=Mutakhirkan perangkat lunak yang terpasang pada sistem
95
+Comment[it]=Aggiorna il software installato sul sistema
96
+Comment[ja]=システムにインストールされたパッケージの更新
97
+Comment[kn]=ಗಣಕದಲ್ಲಿ ಅನುಸ್ಥಾಪಿತಗೊಂಡಿರುವ ತಂತ್ರಾಂಶವನ್ನು ಅಪ್ಡೇಟ್ ಮಾಡು
98
+Comment[ko]=시스템에 설치한 소프트웨어를 업데이트합니다
99
+Comment[lt]=Atnaujinti sistemoje įdiegtą programinę įrangą
100
+Comment[lv]=Atjaunināt sistēmā instalēto programmatūru
101
+Comment[mk]=Ажурирај го софтверот инсталирај на системот
102
+Comment[ml]=സിസ്റ്റമില്‍ ഇന്‍സ്റ്റോള്‍ ചെയ്തിരിക്കുന്ന സോഫ്റ്റ്‌വെയറുകള്‍ പരിഷ്കരിക്കുക
103
+Comment[mr]=प्रणालीवर प्रतिष्ठापीत सॉफ्टवेअर अद्ययावत करा
104
+Comment[nb]=Oppdater programvare som er installert på systemet
105
+Comment[nl]=Werk de op uw systeem geïnstalleerde software bij
106
+Comment[nn]=Oppdater programvare installert på systemet
107
+Comment[or]=ତନ୍ତ୍ରରେ ସ୍ଥାପନ କରାଯାଇଥିବା ସଫ୍ଟୱେରକୁ ଅଦ୍ୟତନ କରନ୍ତୁ
108
+Comment[pa]=ਸਿਸਟਮ ਉੱਤੇ ਇੰਸਟਾਲ ਸਾਫਟਵੇਅਰ ਅੱਪਡੇਟ ਕਰੋ
109
+Comment[pl]=Aktualizacja oprogramowania zainstalowanego w systemie
110
+Comment[pt]=Actualizar software instalado no sistema
111
+Comment[pt_BR]=Atualize os programas instalados no sistema
112
+Comment[ro]=Actualizați programele instalate pe sistem
113
+Comment[ru]=Обновление программ, установленных в системе
114
+Comment[sk]=Aktualizovať softvér nainštalovaný na tomto systéme
115
+Comment[sl]=Posodobitev programske opreme nameščene na sistemu
116
+Comment[sr]=Ажурирајте програме инсталиране на овом систему
117
+Comment[sr@latin]=Ažurirajte programe instalirane na ovom sistemu
118
+Comment[sv]=Uppdatera programvara installerade på systemet
119
+Comment[ta]=கணினியில் நிறுவப்பட்ட மென்பொருளை புதுப்பிக்கவும்
120
+Comment[te]=వ్యవస్థ నందు స్థాపించిన సాఫ్ట్‍వేర్‌ను నవీకరించు
121
+Comment[th]=ปรับรุ่นซอฟต์แวร์ที่ติดตั้งอยู่ในระบบ
122
+Comment[tr]=Sisteminizde yüklü yazılımı güncelleyin
123
+Comment[ug]=يېڭىلاش يۇمشاق دېتال بۇ سىستېمىغا ئورنىتىلدى
124
+Comment[uk]=Оновлення програм, встановлених у системі
125
+Comment[vi]=Cập nhật phần mềm đã cài đặt trên hệ thống
126
+Comment[zh_CN]=更新本系统中安装的软件
127
+Comment[zh_HK]=更新系統中已安裝的軟件
128
+Comment[zh_TW]=更新系統中已安裝的軟體
129
+Icon=system-software-update
130
+Exec=pamac-updater
131
+Terminal=false
132
+Type=Application
133
+Categories=GNOME;GTK;System;
134
+#NotShowIn=KDE
135
+StartupNotify=true

+ 11
- 0
data/config/pamac.conf View File

@@ -0,0 +1,11 @@
1
+### Pamac configuration file
2
+
3
+## How often to check for updates, value in hours:
4
+RefreshPeriod = 4
5
+
6
+## Allow Pamac to search and install packages from AUR:
7
+EnableAUR
8
+
9
+## When removing a package, also remove those dependencies
10
+## that are not required by other packages (recurse option):
11
+#RemoveUnrequiredDeps

+ 16
- 0
data/dbus/org.manjaro.pamac.conf View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3
+"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4
+<busconfig>
5
+  <!-- Only root can own the service -->
6
+  <policy user="root">
7
+    <allow own="org.manjaro.pamac"/>
8
+  </policy>
9
+
10
+  <!-- Allow anyone to invoke methods on the interfaces -->
11
+  <policy context="default">
12
+    <allow send_destination="org.manjaro.pamac"
13
+           send_interface="org.manjaro.pamac"/>
14
+  </policy>
15
+</busconfig>
16
+

+ 5
- 0
data/dbus/org.manjaro.pamac.service View File

@@ -0,0 +1,5 @@
1
+[D-BUS Service]
2
+Name=org.manjaro.pamac
3
+Exec=/usr/bin/pamac-daemon
4
+User=root
5
+SystemdService=pamac.service

BIN
data/icons/16x16/apps/system-software-install.png View File


BIN
data/icons/24x24/status/pamac-tray-no-update.png View File


BIN
data/icons/24x24/status/pamac-tray-update.png View File


BIN
data/icons/32x32/apps/system-software-install.png View File


+ 10
- 0
data/networkmanager/99_update_pamac_tray View File

@@ -0,0 +1,10 @@
1
+#!/bin/sh
2
+
3
+INTERFACE=$1 # The interface which is brought up or down
4
+STATUS=$2 # The new state of the interface
5
+
6
+case "$STATUS" in
7
+    'up') # $INTERFACE is up
8
+	/usr/bin/pamac-refresh
9
+	;;
10
+esac

+ 25
- 0
data/polkit/org.manjaro.pamac.policy View File

@@ -0,0 +1,25 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE policyconfig PUBLIC
3
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
4
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
5
+<policyconfig>
6
+  <vendor>Manjaro</vendor>
7
+  <vendor_url>http://manjaro.org/</vendor_url>
8
+  <icon_name>package-x-generic</icon_name>
9
+  <action id="org.manjaro.pamac.commit">
10
+    <message>Authentication is required</message>
11
+    <defaults>
12
+      <allow_any>no</allow_any>
13
+      <allow_inactive>no</allow_inactive>
14
+      <allow_active>auth_admin_keep</allow_active>
15
+    </defaults>
16
+  </action>
17
+  <action id="org.manjaro.pamac.write_config">
18
+    <message>Authentication is required</message>
19
+    <defaults>
20
+      <allow_any>no</allow_any>
21
+      <allow_inactive>no</allow_inactive>
22
+      <allow_active>auth_admin_keep</allow_active>
23
+    </defaults>
24
+  </action>
25
+</policyconfig>

+ 7
- 0
data/systemd/pamac.service View File

@@ -0,0 +1,7 @@
1
+[Unit]
2
+Description=Pamac
3
+
4
+[Service]
5
+Type=dbus
6
+BusName=org.manjaro.pamac
7
+ExecStart=/usr/bin/pamac-daemon

+ 278
- 0
examples/pactree.vala View File

@@ -0,0 +1,278 @@
1
+/*
2
+ *  pactree.vala - a simple dependency tree viewer translated in Vala
3
+ *
4
+ *  Copyright (C) 2014  Guillaume Benoit <guillaume@manjaro.org>
5
+ *  Copyright (c) 2010-2011 Pacman Development Team <pacman-dev@archlinux.org>
6
+ *
7
+ *  This program is free software; you can redistribute it and/or modify
8
+ *  it under the terms of the GNU General Public License as published by
9
+ *  the Free Software Foundation; either version 2 of the License, or
10
+ *  (at your option) any later version.
11
+ *
12
+ *  This program is distributed in the hope that it will be useful,
13
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ *  GNU General Public License for more details.
16
+ *
17
+ *  You should have received a copy of the GNU General Public License
18
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+
21
+// Compile with: valac --pkg=libalpm --vapidir=../vapi --Xcc=-I../util ../util/alpm-util.c pactree.vala -o pactree
22
+
23
+using Alpm;
24
+
25
+/* output */
26
+string provides;
27
+string unresolvable;
28
+string branch_tip1;
29
+string branch_tip2;
30
+int indent_size;
31
+
32
+/* color */
33
+string branch1_color;
34
+string branch2_color;
35
+string leaf1_color;
36
+string leaf2_color;
37
+string color_off;
38
+
39
+/* globals */
40
+Handle handle;
41
+unowned DB localdb;
42
+Alpm.List<string?> walked = null;
43
+Alpm.List<string?> provisions = null;
44
+
45
+/* options */
46
+bool color;
47
+bool graphviz;
48
+bool linear;
49
+int max_depth;
50
+bool reverse;
51
+bool unique;
52
+string dbpath;
53
+
54
+const OptionEntry[] options = {
55
+  { "dbpath", 'b', 0, OptionArg.STRING, ref dbpath, "set an alternate database location", "path" },
56
+  { "color", 'c', 0, OptionArg.NONE, ref color, "colorize output", null },
57
+  { "depth", 'd', 0, OptionArg.INT, ref max_depth, "limit the depth of recursion", "number" },
58
+  { "graph", 'g', 0, OptionArg.NONE, ref graphviz, "generate output for graphviz", null },
59
+  { "linear", 'l', 0, OptionArg.NONE, ref linear, "enable linear output", null },
60
+  { "reverse", 'r', 0, OptionArg.NONE, ref reverse, "show reverse dependencies", null },
61
+  { "unique", 'u', 0, OptionArg.NONE, ref unique, "show dependencies with no duplicates (implies -l)", null },
62
+  { null }
63
+};
64
+
65
+static void init_options() {
66
+  /* initialize options */
67
+  color = false;
68
+  graphviz = false;
69
+  linear = false;
70
+  max_depth = -1;
71
+  reverse = false;
72
+  unique = false;
73
+  dbpath = "/var/lib/pacman";
74
+
75
+  /* output */
76
+  provides = " provides";
77
+  unresolvable = " [unresolvable]";
78
+  branch_tip1 = "|--";
79
+  branch_tip2 = "+--";
80
+  indent_size = 3;
81
+
82
+  /* color */
83
+  branch1_color = "\033[0;33m"; /* yellow */
84
+  branch2_color = "\033[0;37m"; /* white */
85
+  leaf1_color   = "\033[1;32m"; /* bold green */
86
+  leaf2_color   = "\033[0;32m"; /* green */
87
+  color_off     = "\033[0m";
88
+}
89
+
90
+static int parse_options(ref unowned string[] args) {
91
+  var opts = new OptionContext("");
92
+  opts.set_help_enabled(true);
93
+  opts.add_main_entries(options, null);
94
+
95
+  try {
96
+    bool b = opts.parse(ref args);
97
+    if (!b) {
98
+      stderr.puts(opts.get_help(false, null));
99
+      return 1;
100
+    }
101
+  }
102
+  catch (OptionError e)
103
+  {
104
+    stderr.puts("Unable to parse options : " + e.message + "\n");
105
+    return 1;
106
+  }
107
+  /* there must be (at least) one argument left */
108
+  if (args.length == 1) return 1;
109
+  /* unique implies linear */
110
+  if (unique) linear = true;
111
+
112
+  /* no color */
113
+  if (!color) {
114
+    branch1_color = branch2_color = "";
115
+    leaf1_color = leaf2_color = "";
116
+    color_off = "";
117
+  }
118
+
119
+  /* linear */
120
+  if (linear) {
121
+    provides = "";
122
+    branch_tip1 = branch_tip2 = "";
123
+    indent_size = 0;
124
+  }
125
+  return 0;
126
+}
127
+
128
+static void local_init() {
129
+  Alpm.Errno error;
130
+  handle = new Handle ("/", dbpath, out error);
131
+  assert (error == 0);
132
+  localdb = handle.localdb;
133
+  assert (localdb != null);
134
+}
135
+
136
+static int main (string[] args) {
137
+  init_options();
138
+  int ret = parse_options(ref args);
139
+  if (ret != 0) return ret;
140
+
141
+  local_init();
142
+  string? target_name = args[1];
143
+
144
+  unowned Package? pkg = find_satisfier(localdb.pkgcache, target_name);
145
+  if (pkg == null) {
146
+    stderr.printf("Error: package '%s' not found\n", target_name);
147
+    return 1;
148
+  }
149
+
150
+  /* begin writing */
151
+  print_start(pkg.name, target_name);
152
+  if(reverse)
153
+    walk_reverse_deps(pkg, 1);
154
+  else
155
+    walk_deps(pkg, 1);
156
+
157
+  print_end();
158
+  return 0;
159
+}
160
+
161
+static void print_text(string? pkg, string? provision, int depth)
162
+{
163
+  int indent_sz = (depth + 1) * indent_size;
164
+
165
+  if ((pkg == null) && (provision == null)) return;
166
+
167
+  if (pkg == null) {
168
+    /* we failed to resolve provision */
169
+    stdout.printf("%s%*s%s%s%s%s%s\n", branch1_color, indent_sz, branch_tip1,
170
+		  leaf1_color, provision, branch1_color, unresolvable, color_off);
171
+  } else if ((provision != null) && (provision != pkg)) {
172
+    /* pkg provides provision */
173
+    stdout.printf("%s%*s%s%s%s%s %s%s%s\n", branch2_color, indent_sz, branch_tip2,
174
+				leaf1_color, pkg, leaf2_color, provides, leaf1_color, provision,
175
+				color_off);
176
+  } else {
177
+    /* pkg is a normal package */
178
+    stdout.printf("%s%*s%s%s%s\n", branch1_color, indent_sz, branch_tip1, leaf1_color,
179
+	   pkg, color_off);
180
+  }
181
+}
182
+
183
+/**
184
+ * walk dependencies in reverse, showing packages which require the target
185
+ */
186
+static void walk_reverse_deps(Package pkg, int depth) {
187
+  if((max_depth >= 0) && (depth > max_depth)) return;
188
+
189
+  walked.add(pkg.name);
190
+  unowned Alpm.List<string?> required_by = pkg.compute_requiredby ();
191
+
192
+  foreach(string? i in required_by) {
193
+    string pkgname = i;
194
+    if (walked.find_str(pkgname) != null) {
195
+      /* if we've already seen this package, don't print in "unique" output
196
+       * and don't recurse */
197
+      if (!unique) print(pkg.name, pkgname, null, depth);
198
+    } else {
199
+      print(pkg.name, pkgname, null, depth);
200
+      walk_reverse_deps(localdb.get_pkg(pkgname), depth + 1);
201
+    }
202
+  }
203
+}
204
+
205
+/**
206
+ * walk dependencies, showing dependencies of the target
207
+ */
208
+static void walk_deps(Package pkg, int depth)
209
+{
210
+  if((max_depth >= 0) && (depth > max_depth)) return;
211
+
212
+  walked.add(pkg.name);
213
+
214
+  foreach (unowned Depend depend in pkg.depends) {
215
+    string depname = depend.name;
216
+    unowned Package? provider = find_satisfier (localdb.pkgcache, depname);
217
+
218
+    if (provider != null) {
219
+      string provname = provider.name;
220
+
221
+      if (walked.find_str (provname) != null) {
222
+        /* if we've already seen this package, don't print in "unique" output
223
+        * and don't recurse */
224
+        if (!unique) {
225
+          print (pkg.name, provname, depname, depth);
226
+        }
227
+      } else {
228
+        print (pkg.name, provname, depname, depth);
229
+        walk_deps(provider, depth + 1);
230
+      }
231
+    } else {
232
+      /* unresolvable package */
233
+      print(pkg.name, null, depname, depth);
234
+    }
235
+  }
236
+}
237
+
238
+static void print_graph(string parentname, string? pkgname, string? depname)
239
+{
240
+  if(depname != null) {
241
+    stdout.printf("\"%s\" -> \"%s\" [color=chocolate4];\n", parentname, depname);
242
+    if((pkgname != null) && (depname != pkgname) && (provisions.find_str(depname) != null)) {
243
+      stdout.printf("\"%s\" -> \"%s\" [arrowhead=none, color=grey];\n", depname, pkgname);
244
+      provisions.add(depname);
245
+    }
246
+  } else if(pkgname != null) {
247
+    stdout.printf("\"%s\" -> \"%s\" [color=chocolate4];\n", parentname, pkgname);
248
+  }
249
+}
250
+
251
+/* parent depends on dep which is satisfied by pkg */
252
+static void print(string? parentname, string? pkgname, string? depname, int depth)
253
+{
254
+  if(graphviz) {
255
+    print_graph(parentname, pkgname, depname);
256
+  } else {
257
+    print_text(pkgname, depname, depth);
258
+  }
259
+}
260
+
261
+static void print_start(string pkgname, string provname)
262
+{
263
+  if(graphviz) {
264
+    stdout.printf("digraph G { START [color=red, style=filled];\n" +
265
+		  "node [style=filled, color=green];\n" +
266
+		  " \"START\" -> \"%s\";\n", pkgname);
267
+  } else {
268
+    print_text(pkgname, provname, 0);
269
+  }
270
+}
271
+
272
+static void print_end()
273
+{
274
+  if(graphviz) {
275
+    /* close graph output */
276
+    stdout.printf("}\n");
277
+  }
278
+}

+ 24
- 0
files_to_translate View File

@@ -0,0 +1,24 @@
1
+./resources/choose_provider_dialog.ui
2
+./resources/packages_chooser_dialog.ui
3
+./resources/progress_window.ui
4
+./resources/history_dialog.ui
5
+./resources/transaction_info_dialog.ui
6
+./resources/transaction_sum_dialog.ui
7
+./resources/manager_window.ui
8
+./resources/updater_window.ui
9
+./resources/preferences_dialog.ui
10
+
11
+./src/packages_chooser_dialog.vala
12
+./src/transaction_info_dialog.vala
13
+./src/history_dialog.vala
14
+./src/transaction_sum_dialog.vala
15
+./src/installer.vala
16
+./src/tray.vala
17
+./src/manager.vala
18
+./src/preferences_dialog.vala
19
+./src/updater.vala
20
+./src/choose_provider_dialog.vala
21
+./src/manager_window.vala
22
+./src/progress_window.vala
23
+./src/updater_window.vala
24
+./src/common.vala 

+ 279
- 0
pamac.pot View File

@@ -0,0 +1,279 @@
1
+# Translation of Pamac.
2
+# Copyright (C) 2007-2012 Free Software Foundation, Inc.
3
+# This file is distributed under the same license as the Pamac package.
4
+# Guillaume Benoit <guillaume@manjaro.org>, 2013-2014.
5
+#
6
+msgid ""
7
+msgstr ""
8
+"Project-Id-Version: pamac 2.0\n"
9
+"Report-Msgid-Bugs-To: \n"
10
+"POT-Creation-Date: 2014-13-10 15:09+0100\n"
11
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+"Language-Team: LANGUAGE <LL@li.org>\n"
14
+"Language: \n"
15
+"MIME-Version: 1.0\n"
16
+"Content-Type: text/plain; charset=UTF-8\n"
17
+"Content-Transfer-Encoding: 8bit\n"
18
+
19
+#: data/polkit/org.manjaro.pamac.policy:10
20
+msgid "Authentication is required"
21
+msgstr ""
22
+
23
+#: resources/choose_provider_dialog.ui:7
24
+msgid "Choose a Provider"
25
+msgstr ""
26
+
27
+#: resources/packages_chooser_dialog.ui:7 resources/manager_window.ui:789
28
+msgid "Install local packages"
29
+msgstr ""
30
+
31
+#: resources/progress_window.ui:16
32
+msgid "Progress"
33
+msgstr ""
34
+
35
+#: resources/progress_window.ui:63 resources/transaction_info_dialog.ui:84
36
+msgid "details"
37
+msgstr ""
38
+
39
+#: resources/history_dialog.ui:7
40
+msgid "Pamac History"
41
+msgstr ""
42
+
43
+#: resources/manager_window.ui:14 src/tray.vala:76
44
+msgid "Package Manager"
45
+msgstr ""
46
+
47
+#: resources/manager_window.ui:23
48
+msgid "Refresh"
49
+msgstr ""
50
+
51
+#: resources/manager_window.ui:47
52
+msgid "Apply changes"
53
+msgstr ""
54
+
55
+#: resources/manager_window.ui:71
56
+msgid "Cancel"
57
+msgstr ""
58
+
59
+#: resources/manager_window.ui:170
60
+msgid "Search in AUR"
61
+msgstr ""
62
+
63
+#: resources/manager_window.ui:234
64
+msgid "Search"
65
+msgstr ""
66
+
67
+#: resources/manager_window.ui:279 src/manager_window.vala:336
68
+msgid "Groups"
69
+msgstr ""
70
+
71
+#: resources/manager_window.ui:325 resources/manager_window.ui:418
72
+msgid "State"
73
+msgstr ""
74
+
75
+#: resources/manager_window.ui:371
76
+msgid "Repos"
77
+msgstr ""
78
+
79
+#: resources/manager_window.ui:433
80
+msgid "Name"
81
+msgstr ""
82
+
83
+#: resources/manager_window.ui:448
84
+msgid "Version"
85
+msgstr ""
86
+
87
+#: resources/manager_window.ui:463
88
+msgid "Repo"
89
+msgstr ""
90
+
91
+#: resources/manager_window.ui:478
92
+msgid "Size"
93
+msgstr ""
94
+
95
+#: resources/manager_window.ui:582
96
+msgid "Infos"
97
+msgstr ""
98
+
99
+#: resources/manager_window.ui:642
100
+msgid "Deps"
101
+msgstr ""
102
+
103
+#: resources/manager_window.ui:707
104
+msgid "Details"
105
+msgstr ""
106
+
107
+#: resources/manager_window.ui:740
108
+msgid "Files"
109
+msgstr ""
110
+
111
+#: resources/manager_window.ui:779
112
+msgid "View History"
113
+msgstr ""
114
+
115
+#: resources/updater_window.ui:14 src/tray.vala:73 src/tray.vala:166
116
+#: src/tray.vala:238
117
+msgid "Update Manager"
118
+msgstr ""
119
+
120
+#: resources/preferences_dialog.ui:6
121
+msgid "Pamac Preferences"
122
+msgstr ""
123
+
124
+#: resources/preferences_dialog.ui:74
125
+msgid "Enable AUR support"
126
+msgstr ""
127
+
128
+#: resources/preferences_dialog.ui:87
129
+msgid "Allow Pamac to search and install packages from AUR"
130
+msgstr ""
131
+
132
+#: resources/preferences_dialog.ui:105
133
+msgid "Remove unrequired dependencies"
134
+msgstr ""
135
+
136
+#: resources/preferences_dialog.ui:118
137
+msgid ""
138
+"When removing a package, also remove those dependencies that are not "
139
+"required by other packages"
140
+msgstr ""
141
+
142
+#: resources/preferences_dialog.ui:152 src/preferences_dialog.vala:37
143
+msgid "How often to check for updates, value in hours"
144
+msgstr ""
145
+
146
+#: resources/preferences_dialog.ui:177
147
+msgid "Options"
148
+msgstr ""
149
+
150
+#: src/packages_chooser_dialog.vala:32
151
+msgid "Packages"
152
+msgstr ""
153
+
154
+#: src/tray.vala:24 src/updater_window.vala:167
155
+msgid "{number} available updates"
156
+msgstr ""
157
+
158
+#: src/tray.vala:25 src/updater_window.vala:164
159
+msgid "1 available update"
160
+msgstr ""
161
+
162
+#: src/tray.vala:27 src/updater_window.vala:56 src/updater_window.vala:161
163
+msgid "Your system is up-to-date"
164
+msgstr ""
165
+
166
+#: src/tray.vala:79
167
+msgid "Quit"
168
+msgstr ""
169
+
170
+#: src/tray.vala:167
171
+msgid "Show available updates"
172
+msgstr ""
173
+
174
+#: src/manager_window.vala:179 src/manager_window.vala:777
175
+msgid "local"
176
+msgstr ""
177
+
178
+#: src/manager_window.vala:183 src/manager_window.vala:250
179
+#: src/manager_window.vala:262 src/manager_window.vala:737
180
+msgid "Installed"
181
+msgstr ""
182
+
183
+#: src/manager_window.vala:185 src/manager_window.vala:751
184
+msgid "Orphans"
185
+msgstr ""
186
+
187
+#: src/manager_window.vala:186 src/manager_window.vala:720
188
+msgid "To install"
189
+msgstr ""
190
+
191
+#: src/manager_window.vala:187 src/manager_window.vala:731
192
+msgid "To remove"
193
+msgstr ""
194
+
195
+#: src/manager_window.vala:210
196
+msgid "Licenses"
197
+msgstr ""
198
+
199
+#: src/manager_window.vala:232
200
+msgid "Depends On"
201
+msgstr ""
202
+
203
+#: src/manager_window.vala:252
204
+msgid "Optional Deps"
205
+msgstr ""
206
+
207
+#: src/manager_window.vala:272
208
+msgid "Required By"
209
+msgstr ""
210
+
211
+#: src/manager_window.vala:286
212
+msgid "Provides"
213
+msgstr ""
214
+
215
+#: src/manager_window.vala:299
216
+msgid "Replaces"
217
+msgstr ""
218
+
219
+#: src/manager_window.vala:312
220
+msgid "Conflicts With"
221
+msgstr ""
222
+
223
+#: src/manager_window.vala:328
224
+msgid "Repository"
225
+msgstr ""
226
+
227
+#: src/manager_window.vala:346
228
+msgid "Packager"
229
+msgstr ""
230
+
231
+#: src/manager_window.vala:352
232
+msgid "Install Date"
233
+msgstr ""
234
+
235
+#: src/manager_window.vala:356
236
+msgid "Explicitly installed"
237
+msgstr ""
238
+
239
+#: src/manager_window.vala:358
240
+msgid "Installed as a dependency for another package"
241
+msgstr ""
242
+
243
+#: src/manager_window.vala:360
244
+msgid "Unknown"
245
+msgstr ""
246
+
247
+#: src/manager_window.vala:362
248
+msgid "Install Reason"
249
+msgstr ""
250
+
251
+#: src/manager_window.vala:367
252
+msgid "Signatures"
253
+msgstr ""
254
+
255
+#: src/manager_window.vala:375
256
+msgid "Backup files"
257
+msgstr ""
258
+
259
+#: src/manager_window.vala:497
260
+msgid "No package found"
261
+msgstr ""
262
+
263
+#: src/manager_window.vala:739
264
+msgid "Uninstalled"
265
+msgstr ""
266
+
267
+#: src/updater_window.vala:173
268
+msgid "Total download size:"
269
+msgstr ""
270
+
271
+#: src/common.vala:62
272
+#, c-format
273
+msgid "%.0f KiB"
274
+msgstr ""
275
+
276
+#: src/common.vala:65
277
+#, c-format
278
+msgid "%.2f MiB"
279
+msgstr ""

+ 21
- 0
pot_head View File

@@ -0,0 +1,21 @@
1
+# Translation of Pamac.
2
+# Copyright (C) 2007-2012 Free Software Foundation, Inc.
3
+# This file is distributed under the same license as the Pamac package.
4
+# Guillaume Benoit <guillaume@manjaro.org>, 2013-2014.
5
+#
6
+msgid ""
7
+msgstr ""
8
+"Project-Id-Version: pamac 2.0\n"
9
+"Report-Msgid-Bugs-To: \n"
10
+"POT-Creation-Date: 2013-03-30 15:09+0100\n"
11
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+"Language-Team: LANGUAGE <LL@li.org>\n"
14
+"Language: \n"
15
+"MIME-Version: 1.0\n"
16
+"Content-Type: text/plain; charset=UTF-8\n"
17
+"Content-Transfer-Encoding: 8bit\n"
18
+
19
+#: data/polkit/org.manjaro.pamac.policy:10
20
+msgid "Authentication is required"
21
+msgstr ""

+ 86
- 0
resources/choose_provider_dialog.ui View File

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<interface>
3
+  <requires lib="gtk+" version="3.12"/>
4
+  <template class="PamacChooseProviderDialog" parent="GtkDialog">
5
+    <property name="can_focus">False</property>
6
+    <property name="border_width">12</property>
7
+    <property name="title" translatable="yes">Choose a Provider</property>
8
+    <property name="modal">True</property>
9
+    <property name="window_position">center-on-parent</property>
10
+    <property name="icon_name">system-software-install</property>
11
+    <property name="type_hint">dialog</property>
12
+    <child internal-child="vbox">
13
+      <object class="GtkBox" id="dialog-vbox2">
14
+        <property name="can_focus">False</property>
15
+        <property name="orientation">vertical</property>
16
+        <property name="spacing">12</property>
17
+        <child internal-child="action_area">
18
+          <object class="GtkButtonBox" id="dialog-action_area2">
19
+            <property name="can_focus">False</property>
20
+            <property name="layout_style">end</property>
21
+            <child>
22
+              <object class="GtkButton" id="button">
23
+                <property name="label">gtk-ok</property>
24
+                <property name="visible">True</property>
25
+                <property name="can_focus">True</property>
26
+                <property name="has_focus">True</property>
27
+                <property name="receives_default">True</property>
28
+                <property name="use_stock">True</property>
29
+              </object>
30
+              <packing>
31
+                <property name="expand">True</property>
32
+                <property name="fill">True</property>
33
+                <property name="position">0</property>
34
+              </packing>
35
+            </child>
36
+          </object>
37
+          <packing>
38
+            <property name="expand">False</property>
39
+            <property name="fill">True</property>
40
+            <property name="pack_type">end</property>
41
+            <property name="position">0</property>
42
+          </packing>
43
+        </child>
44
+        <child>
45
+          <object class="GtkBox" id="box4">
46
+            <property name="visible">True</property>
47
+            <property name="can_focus">False</property>
48
+            <property name="orientation">vertical</property>
49
+            <property name="spacing">12</property>
50
+            <child>
51
+              <object class="GtkLabel" id="label">
52
+                <property name="visible">True</property>
53
+                <property name="can_focus">False</property>
54
+                <property name="track_visited_links">False</property>
55
+              </object>
56
+              <packing>
57
+                <property name="expand">False</property>
58
+                <property name="fill">True</property>
59
+                <property name="position">0</property>
60
+              </packing>
61
+            </child>
62
+            <child>
63
+              <object class="GtkComboBoxText" id="comboboxtext">
64
+                <property name="visible">True</property>
65
+                <property name="can_focus">False</property>
66
+              </object>
67
+              <packing>
68
+                <property name="expand">False</property>
69
+                <property name="fill">True</property>
70
+                <property name="position">1</property>
71
+              </packing>
72
+            </child>
73
+          </object>
74
+          <packing>
75
+            <property name="expand">False</property>
76
+            <property name="fill">True</property>
77
+            <property name="position">1</property>
78
+          </packing>
79
+        </child>
80
+      </object>
81
+    </child>
82
+    <action-widgets>
83
+      <action-widget response="-5">button</action-widget>
84
+    </action-widgets>
85
+  </template>
86
+</interface>

+ 75
- 0
resources/history_dialog.ui View File

@@ -0,0 +1,75 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<interface>
3
+  <requires lib="gtk+" version="3.12"/>
4
+  <template class="PamacHistoryDialog" parent="GtkDialog">
5
+    <property name="can_focus">False</property>
6
+    <property name="border_width">12</property>
7
+    <property name="title" translatable="yes">Pamac History</property>
8
+    <property name="default_width">600</property>
9
+    <property name="default_height">500</property>
10
+    <property name="icon_name">system-software-install</property>
11
+    <property name="type_hint">dialog</property>
12
+    <child internal-child="vbox">
13
+      <object class="GtkBox" id="dialog-vbox1">
14
+        <property name="can_focus">False</property>
15
+        <property name="orientation">vertical</property>
16
+        <property name="spacing">12</property>
17
+        <child internal-child="action_area">
18
+          <object class="GtkButtonBox" id="dialog-action_area1">
19
+            <property name="can_focus">False</property>
20
+            <property name="layout_style">end</property>
21
+            <child>
22
+              <object class="GtkButton" id="close_button">
23
+                <property name="label">gtk-close</property>
24
+                <property name="visible">True</property>
25
+                <property name="can_focus">True</property>
26
+                <property name="has_focus">True</property>
27
+                <property name="receives_default">True</property>
28
+                <property name="use_stock">True</property>
29
+              </object>
30
+              <packing>
31
+                <property name="expand">False</property>
32
+                <property name="fill">True</property>
33
+                <property name="position">0</property>
34
+              </packing>
35
+            </child>
36
+          </object>
37
+          <packing>
38
+            <property name="expand">False</property>
39
+            <property name="fill">True</property>
40
+            <property name="pack_type">end</property>
41
+            <property name="position">0</property>
42
+          </packing>
43
+        </child>
44
+        <child>
45
+          <object class="GtkScrolledWindow" id="scrolledwindow">
46
+            <property name="visible">True</property>
47
+            <property name="can_focus">True</property>
48
+            <property name="shadow_type">in</property>
49
+            <property name="min_content_width">300</property>
50
+            <property name="min_content_height">400</property>
51
+            <child>
52
+              <object class="GtkTextView" id="textview">
53
+                <property name="visible">True</property>
54
+                <property name="can_focus">True</property>
55
+                <property name="pixels_above_lines">2</property>
56
+                <property name="pixels_below_lines">2</property>
57
+                <property name="editable">False</property>
58
+                <property name="cursor_visible">False</property>
59
+                <signal name="size-allocate" handler="on_textview_size_allocate" swapped="no"/>
60
+              </object>
61
+            </child>
62
+          </object>
63
+          <packing>
64
+            <property name="expand">True</property>
65
+            <property name="fill">True</property>
66
+            <property name="position">1</property>
67
+          </packing>
68
+        </child>
69
+      </object>
70
+    </child>
71
+    <action-widgets>
72
+      <action-widget response="-7">close_button</action-widget>
73
+    </action-widgets>
74
+  </template>
75
+</interface>

+ 818
- 0
resources/manager_window.ui View File

@@ -0,0 +1,818 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<interface>
3
+  <requires lib="gtk+" version="3.12"/>
4
+  <template class="PamacManagerWindow" parent="GtkApplicationWindow">
5
+    <property name="visible">True</property>
6
+    <property name="window_position">center</property>
7
+    <property name="default_width">900</property>
8
+    <property name="default_height">600</property>
9
+    <property name="icon_name">system-software-install</property>
10
+    <property name="show_menubar">True</property>
11
+    <child type="titlebar">
12
+      <object class="GtkHeaderBar" id="headerbar">
13
+        <property name="visible">True</property>
14
+        <property name="title" translatable="yes">Package Manager</property>
15
+        <property name="show_close_button">True</property>
16
+        <child>
17
+          <object class="GtkBox" id="box1">
18
+            <property name="visible">True</property>
19
+            <property name="spacing">6</property>
20
+            <child>
21
+              <object class="GtkButton" id="refresh_button">
22
+                <property name="visible">True</property>
23
+                <property name="tooltip_text" translatable="yes">Refresh</property>
24
+                <property name="focus_on_click">False</property>
25
+                <signal name="clicked" handler="on_refresh_button_clicked" swapped="no"/>
26
+                <style>
27
+                  <class name="image-button"/>
28
+                </style>
29
+                <child>
30
+                  <object class="GtkImage" id="refresh-icon">
31
+                    <property name="visible">True</property>
32
+                    <property name="icon-name">view-refresh-symbolic</property>
33
+                    <property name="icon-size">1</property>
34
+                  </object>
35
+                </child>
36
+              </object>
37
+              <packing>
38
+                <property name="expand">False</property>
39
+                <property name="fill">True</property>
40
+                <property name="pack_type">start</property>
41
+                <property name="position">0</property>
42
+              </packing>
43
+            </child>
44
+            <child>
45
+              <object class="GtkButton" id="valid_button">
46
+                <property name="visible">True</property>
47
+                <property name="tooltip_text" translatable="yes">Apply changes</property>
48
+                <property name="focus_on_click">False</property>
49
+                <signal name="clicked" handler="on_valid_button_clicked" swapped="no"/>
50
+                <style>
51
+                  <class name="image-button"/>
52
+                </style>
53
+                <child>
54
+                  <object class="GtkImage" id="valid-icon">
55
+                    <property name="visible">True</property>
56
+                    <property name="icon-name">emblem-ok-symbolic</property>
57
+                    <property name="icon-size">1</property>
58
+                  </object>
59
+                </child>
60
+              </object>
61
+              <packing>
62
+                <property name="expand">False</property>
63
+                <property name="fill">True</property>
64
+                <property name="pack_type">start</property>
65
+                <property name="position">1</property>
66
+              </packing>
67
+            </child>
68
+            <child>
69
+              <object class="GtkButton" id="cancel_button">
70
+                <property name="visible">True</property>
71
+                <property name="tooltip_text" translatable="yes">Cancel</property>
72
+                <property name="focus_on_click">False</property>
73
+                <signal name="clicked" handler="on_cancel_button_clicked" swapped="no"/>
74
+                <style>
75
+                  <class name="image-button"/>
76
+                </style>
77
+                <child>
78
+                  <object class="GtkImage" id="cancel-icon">
79
+                    <property name="visible">True</property>
80
+                    <property name="icon-name">edit-delete-symbolic</property>
81
+                    <property name="icon-size">1</property>
82
+                  </object>
83
+                </child>
84
+              </object>
85
+              <packing>
86
+                <property name="expand">False</property>
87
+                <property name="fill">True</property>
88
+                <property name="pack_type">start</property>
89
+                <property name="position">2</property>
90
+              </packing>
91
+            </child>
92
+          </object>
93
+          <packing>
94
+            <property name="pack_type">start</property>
95
+          </packing>
96
+        </child>
97
+        <child>
98
+          <object class="GtkBox" id="box2">
99
+            <property name="visible">True</property>
100
+            <child>
101
+              <object class="GtkMenuButton" id="menu_button">
102
+                <property name="visible">True</property>
103
+                <property name="popup">main_menu</property>
104
+                <property name="use_popover">True</property>
105
+                <style>
106
+                  <class name="image-button"/>
107
+                </style>
108
+                <child>
109
+                  <object class="GtkImage" id="menu-icon">
110
+                    <property name="visible">True</property>
111
+                    <property name="icon-name">emblem-system-symbolic</property>
112
+                    <property name="icon-size">1</property>
113
+                  </object>
114
+                </child>
115
+              </object>
116
+              <packing>
117
+                <property name="expand">False</property>
118
+                <property name="fill">True</property>
119
+                <property name="pack_type">end</property>
120
+                <property name="position">3</property>
121
+              </packing>
122
+            </child>
123
+          </object>
124
+          <packing>
125
+            <property name="pack_type">end</property>
126
+          </packing>
127
+        </child>  
128
+      </object>
129
+    </child>
130
+    <child>
131
+      <object class="GtkPaned" id="paned1">
132
+        <property name="visible">True</property>
133
+        <property name="can_focus">True</property>
134
+        <child>
135
+          <object class="GtkNotebook" id="filters_notebook">
136
+            <property name="visible">True</property>
137
+            <property name="can_focus">True</property>
138
+            <signal name="switch-page" handler="on_filters_notebook_switch_page" after="yes" swapped="no"/>
139
+            <child>
140
+              <object class="GtkBox" id="box3">
141
+                <property name="visible">True</property>
142
+                <property name="can_focus">False</property>
143
+                <property name="border_width">6</property>
144
+                <property name="orientation">vertical</property>
145
+                <property name="spacing">6</property>
146
+                <child>
147
+                  <object class="GtkSearchEntry" id="search_entry">
148
+                    <property name="visible">True</property>
149
+                    <property name="can_focus">True</property>
150
+                    <property name="has_focus">True</property>
151
+                    <property name="receives_default">True</property>
152
+                    <property name="caps_lock_warning">False</property>
153
+                    <property name="primary_icon_name">edit-find-symbolic</property>
154
+                    <signal name="activate" handler="on_search_entry_activate" swapped="no"/>
155
+                    <signal name="icon-press" handler="on_search_entry_icon_press" swapped="no"/>
156
+                  </object>
157
+                  <packing>
158
+                    <property name="expand">False</property>
159
+                    <property name="fill">True</property>
160
+                    <property name="position">0</property>
161
+                  </packing>
162
+                </child>
163
+                <child>
164
+                  <object class="GtkBox" id="box4">
165
+                    <property name="visible">True</property>
166
+                    <property name="can_focus">False</property>
167
+                    <property name="spacing">6</property>
168
+                    <child>
169
+                      <object class="GtkLabel" id="search_aur_label">
170
+                        <property name="label" translatable="yes">Search in AUR</property>
171
+                        <property name="visible">True</property>
172
+                        <property name="halign">1</property>
173
+                      </object>
174
+                      <packing>
175
+                        <property name="expand">True</property>
176
+                        <property name="fill">True</property>
177
+                      </packing>
178
+                    </child>
179
+                    <child>
180
+                      <object class="GtkSwitch" id="search_aur_button">
181
+                        <property name="visible">True</property>
182
+                        <property name="halign">2</property>
183
+                      </object>
184
+                      <packing>
185
+                        <property name="expand">True</property>
186
+                        <property name="fill">True</property>
187
+                      </packing>
188
+                    </child>
189
+                  </object>
190
+                </child>
191
+                <child>
192
+                  <object class="GtkScrolledWindow" id="scrolledwindow3">
193
+                    <property name="visible">True</property>
194
+                    <property name="can_focus">True</property>
195
+                    <property name="shadow_type">in</property>
196
+                    <child>
197
+                      <object class="GtkTreeView" id="search_treeview">
198
+                        <property name="visible">True</property>
199
+                        <property name="can_focus">False</property>
200
+                        <property name="headers_visible">False</property>
201
+                        <property name="headers_clickable">False</property>
202
+                        <property name="enable_search">False</property>
203
+                        <property name="show_expanders">False</property>
204
+                        <child internal-child="selection">
205
+                          <object class="GtkTreeSelection" id="search_treeview_selection">
206
+                            <signal name="changed" handler="on_search_treeview_selection_changed" after="yes" swapped="no"/>
207
+                          </object>
208
+                        </child>
209
+                        <child>
210
+                          <object class="GtkTreeViewColumn" id="Terms">
211
+                            <child>
212
+                              <object class="GtkCellRendererText" id="cellrenderertext8"/>
213
+                              <attributes>
214
+                                <attribute name="text">0</attribute>
215
+                              </attributes>
216
+                            </child>
217
+                          </object>
218
+                        </child>
219
+                      </object>
220
+                    </child>
221
+                  </object>
222
+                  <packing>
223
+                    <property name="expand">True</property>
224
+                    <property name="fill">True</property>
225
+                    <property name="position">2</property>
226
+                  </packing>
227
+                </child>
228
+              </object>
229
+            </child>
230
+            <child type="tab">
231
+              <object class="GtkLabel" id="tab1">
232
+                <property name="visible">True</property>
233
+                <property name="can_focus">False</property>
234
+                <property name="label" translatable="yes">Search</property>
235
+              </object>
236
+              <packing>
237
+                <property name="tab_fill">False</property>
238
+              </packing>
239
+            </child>
240
+            <child>
241
+              <object class="GtkScrolledWindow" id="scrolledwindow1">
242
+                <property name="visible">True</property>
243
+                <property name="can_focus">True</property>
244
+                <property name="shadow_type">in</property>
245
+                <child>
246
+                  <object class="GtkTreeView" id="groups_treeview">
247
+                    <property name="visible">True</property>
248
+                    <property name="can_focus">False</property>
249
+                    <property name="headers_visible">False</property>
250
+                    <property name="headers_clickable">False</property>
251
+                    <property name="enable_search">False</property>
252
+                    <property name="show_expanders">False</property>
253
+                    <child internal-child="selection">
254
+                      <object class="GtkTreeSelection" id="groups_treeview_selection">
255
+                        <signal name="changed" handler="on_groups_treeview_selection_changed" after="yes" swapped="no"/>
256
+                      </object>
257
+                    </child>
258
+                    <child>
259
+                      <object class="GtkTreeViewColumn" id="Groups">
260
+                        <child>
261
+                          <object class="GtkCellRendererText" id="cellrenderertext2"/>
262
+                          <attributes>
263
+                            <attribute name="text">0</attribute>
264
+                          </attributes>
265
+                        </child>
266
+                      </object>
267
+                    </child>
268
+                  </object>
269
+                </child>
270
+              </object>
271
+              <packing>
272
+                <property name="position">1</property>
273
+              </packing>
274
+            </child>
275
+            <child type="tab">
276
+              <object class="GtkLabel" id="tab2">
277
+                <property name="visible">True</property>
278
+                <property name="can_focus">False</property>
279
+                <property name="label" translatable="yes">Groups</property>
280
+              </object>
281
+              <packing>
282
+                <property name="position">1</property>
283
+                <property name="tab_fill">False</property>
284
+              </packing>
285
+            </child>
286
+            <child>
287
+              <object class="GtkScrolledWindow" id="scrolledwindow2">
288
+                <property name="visible">True</property>
289
+                <property name="can_focus">True</property>
290
+                <property name="shadow_type">in</property>
291
+                <child>
292
+                  <object class="GtkTreeView" id="states_treeview">
293
+                    <property name="visible">True</property>
294
+                    <property name="can_focus">False</property>
295
+                    <property name="headers_visible">False</property>
296
+                    <property name="headers_clickable">False</property>
297
+                    <property name="enable_search">False</property>
298
+                    <property name="show_expanders">False</property>
299
+                    <child internal-child="selection">
300
+                      <object class="GtkTreeSelection" id="states_treeview_selection">
301
+                        <signal name="changed" handler="on_states_treeview_selection_changed" after="yes" swapped="no"/>
302
+                      </object>
303
+                    </child>
304
+                    <child>
305
+                      <object class="GtkTreeViewColumn" id="State">
306
+                        <child>
307
+                          <object class="GtkCellRendererText" id="cellrenderertext9"/>
308
+                          <attributes>
309
+                            <attribute name="text">0</attribute>
310
+                          </attributes>
311
+                        </child>
312
+                      </object>
313
+                    </child>
314
+                  </object>
315
+                </child>
316
+              </object>
317
+              <packing>
318
+                <property name="position">2</property>
319
+              </packing>
320
+            </child>
321
+            <child type="tab">
322
+              <object class="GtkLabel" id="tab3">
323
+                <property name="visible">True</property>
324
+                <property name="can_focus">False</property>
325
+                <property name="label" translatable="yes">State</property>
326
+              </object>
327
+              <packing>
328
+                <property name="position">2</property>
329
+                <property name="tab_fill">False</property>
330
+              </packing>
331
+            </child>
332
+            <child>
333
+              <object class="GtkScrolledWindow" id="scrolledwindow8">
334
+                <property name="visible">True</property>
335
+                <property name="can_focus">True</property>
336
+                <property name="shadow_type">in</property>
337
+                <child>
338
+                  <object class="GtkTreeView" id="repos_treeview">
339
+                    <property name="visible">True</property>
340
+                    <property name="can_focus">False</property>
341
+                    <property name="headers_visible">False</property>
342
+                    <property name="headers_clickable">False</property>
343
+                    <property name="enable_search">False</property>
344
+                    <property name="show_expanders">False</property>
345
+                    <child internal-child="selection">
346
+                      <object class="GtkTreeSelection" id="repos_treeview_selection">
347
+                        <signal name="changed" handler="on_repos_treeview_selection_changed" after="yes" swapped="no"/>
348
+                      </object>
349
+                    </child>
350
+                    <child>
351
+                      <object class="GtkTreeViewColumn" id="Repos">
352
+                        <child>
353
+                          <object class="GtkCellRendererText" id="cellrenderertext10"/>
354
+                          <attributes>
355
+                            <attribute name="text">0</attribute>
356
+                          </attributes>
357
+                        </child>
358
+                      </object>
359
+                    </child>
360
+                  </object>
361
+                </child>
362
+              </object>
363
+              <packing>
364
+                <property name="position">3</property>
365
+              </packing>
366
+            </child>
367
+            <child type="tab">
368
+              <object class="GtkLabel" id="tab4">
369
+                <property name="visible">True</property>
370
+                <property name="can_focus">False</property>
371
+                <property name="label" translatable="yes">Repos</property>
372
+              </object>
373
+              <packing>
374
+                <property name="position">3</property>
375
+                <property name="tab_fill">False</property>
376
+              </packing>
377
+            </child>
378
+          </object>
379
+          <packing>
380
+            <property name="resize">False</property>
381
+            <property name="shrink">False</property>
382
+          </packing>
383
+        </child>
384
+        <child>
385
+          <object class="GtkPaned" id="paned2">
386
+            <property name="visible">True</property>
387
+            <property name="can_focus">True</property>
388
+            <property name="orientation">vertical</property>
389
+            <child>
390
+              <object class="GtkScrolledWindow" id="scrolledwindow6">
391
+                <property name="visible">True</property>
392
+                <property name="can_focus">True</property>
393
+                <property name="hexpand">True</property>
394
+                <property name="vexpand">True</property>
395
+                <property name="shadow_type">in</property>
396
+                <child>
397
+                  <object class="GtkTreeView" id="packages_treeview">
398
+                    <property name="width_request">500</property>
399
+                    <property name="height_request">300</property>
400
+                    <property name="visible">True</property>
401
+                    <property name="can_focus">True</property>
402
+                    <property name="hexpand">True</property>
403
+                    <property name="vexpand">True</property>
404
+                    <property name="reorderable">True</property>
405
+                    <property name="search_column">0</property>
406
+                    <property name="show_expanders">False</property>
407
+                    <signal name="button-press-event" handler="on_list_treeview_button_press_event" swapped="no"/>
408
+                    <signal name="row-activated" handler="on_packages_treeview_row_activated" swapped="no"/>
409
+                    <child internal-child="selection">
410
+                      <object class="GtkTreeSelection" id="packages_treeview_selection">
411
+                        <signal name="changed" handler="on_packages_treeview_selection_changed" swapped="no"/>
412
+                      </object>
413
+                    </child>
414
+                    <child>
415
+                      <object class="GtkTreeViewColumn" id="state_column">
416
+                        <property name="resizable">True</property>
417
+                        <property name="sizing">autosize</property>
418
+                        <property name="title" translatable="yes">State</property>
419
+                        <property name="clickable">True</property>
420
+                        <signal name="clicked" handler="on_state_column_clicked" swapped="no"/>
421
+                        <child>
422
+                          <object class="GtkCellRendererPixbuf" id="state_rendererpixbuf"/>
423
+                          <attributes>
424
+                            <attribute name="pixbuf">1</attribute>
425
+                          </attributes>
426
+                        </child>
427
+                      </object>
428
+                    </child>
429
+                    <child>
430
+                      <object class="GtkTreeViewColumn" id="name_column">
431
+                        <property name="resizable">True</property>
432
+                        <property name="sizing">autosize</property>
433
+                        <property name="title" translatable="yes">Name</property>
434
+                        <property name="clickable">True</property>
435
+                        <signal name="clicked" handler="on_name_column_clicked" swapped="no"/>
436
+                        <child>
437
+                          <object class="GtkCellRendererText" id="name_renderertext"/>
438
+                          <attributes>
439
+                            <attribute name="text">0</attribute>
440
+                          </attributes>
441
+                        </child>
442
+                      </object>
443
+                    </child>
444
+                    <child>
445
+                      <object class="GtkTreeViewColumn" id="version_column">
446
+                        <property name="resizable">True</property>
447
+                        <property name="sizing">autosize</property>
448
+                        <property name="title" translatable="yes">Version</property>
449
+                        <property name="clickable">True</property>
450
+                        <signal name="clicked" handler="on_version_column_clicked" swapped="no"/>
451
+                        <child>
452
+                          <object class="GtkCellRendererText" id="version_renderertext"/>
453
+                          <attributes>
454
+                            <attribute name="text">2</attribute>
455
+                          </attributes>
456
+                        </child>
457
+                      </object>
458
+                    </child>
459
+                    <child>
460
+                      <object class="GtkTreeViewColumn" id="repo_column">
461
+                        <property name="resizable">True</property>
462
+                        <property name="sizing">autosize</property>
463
+                        <property name="title" translatable="yes">Repo</property>
464
+                        <property name="clickable">True</property>
465
+                        <signal name="clicked" handler="on_repo_column_clicked" swapped="no"/>
466
+                        <child>
467
+                          <object class="GtkCellRendererText" id="repo_renderertext"/>
468
+                          <attributes>
469
+                            <attribute name="text">3</attribute>
470
+                          </attributes>
471
+                        </child>
472