Skip to content

Commit 4aea3b6

Browse files
committed
add new post about aur part 1
1 parent 7f3516c commit 4aea3b6

4 files changed

Lines changed: 106 additions & 0 deletions

File tree

File renamed without changes.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
tags: archlinux, aur
3+
---
4+
5+
# Publicando seu primeiro pacote no AUR: Parte 1
6+
O AUR (Arch User Repository) é um repositório comunitário do Arch Linux que contém PKGBUILDs — scripts que permitem compilar e instalar pacotes que não estão nos repositórios oficiais, criado e mantido pela comunidade Arch.
7+
A instalação não é automática pelo pacman; normalmente se usa um **AUR helper** como `yay`, `paru`, etc...
8+
9+
Exemplo de uso com `yay`:
10+
```bash
11+
paru -S google-chrome
12+
```
13+
Isso baixa o PKGBUILD, compila e instala o pacote.
14+
15+
### Instalando `paru`
16+
Como o yay não está no repositório oficial, você baixa o PKGBUILD e compila:
17+
```bash
18+
sudo pacman -S --needed git base-devel
19+
git clone https://aur.archlinux.org/yay.git
20+
cd yay
21+
makepkg -si
22+
```
23+
24+
### Usando `yay`
25+
26+
![yay](media/yay.gif)
27+
28+
- Instalar um pacote (ex.: Google Chrome): `paru -S google-chrome`
29+
- Atualizar tudo (incluindo pacotes do AUR): `paru -Syu`
30+
- Procurar um pacote: `paru -Ss spotify`
31+
- Remover um pacote: `paru -Rns nome-do-pacote`
32+
33+
⚠️ Lembrando: pacotes do AUR não são oficiais, então sempre confira o **PKGBUILD** antes de instalar (o yay até mostra isso para você revisar).
34+
35+
## Referencias
36+
- https://wiki.archlinux.org/title/Arch_User_Repository
37+
- https://github.com/Jguer/yay

content/media/yay.gif

126 KB
Loading

content/media/yay.tape

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# VHS documentation
2+
#
3+
# Output:
4+
# Output <path>.gif Create a GIF output at the given <path>
5+
# Output <path>.mp4 Create an MP4 output at the given <path>
6+
# Output <path>.webm Create a WebM output at the given <path>
7+
#
8+
# Require:
9+
# Require <string> Ensure a program is on the $PATH to proceed
10+
#
11+
# Settings:
12+
# Set FontSize <number> Set the font size of the terminal
13+
# Set FontFamily <string> Set the font family of the terminal
14+
# Set Height <number> Set the height of the terminal
15+
# Set Width <number> Set the width of the terminal
16+
# Set LetterSpacing <float> Set the font letter spacing (tracking)
17+
# Set LineHeight <float> Set the font line height
18+
# Set LoopOffset <float>% Set the starting frame offset for the GIF loop
19+
# Set Theme <json|string> Set the theme of the terminal
20+
# Set Padding <number> Set the padding of the terminal
21+
# Set Framerate <number> Set the framerate of the recording
22+
# Set PlaybackSpeed <float> Set the playback speed of the recording
23+
# Set MarginFill <file|#000000> Set the file or color the margin will be filled with.
24+
# Set Margin <number> Set the size of the margin. Has no effect if MarginFill isn't set.
25+
# Set BorderRadius <number> Set terminal border radius, in pixels.
26+
# Set WindowBar <string> Set window bar type. (one of: Rings, RingsRight, Colorful, ColorfulRight)
27+
# Set WindowBarSize <number> Set window bar size, in pixels. Default is 40.
28+
# Set TypingSpeed <time> Set the typing speed of the terminal. Default is 50ms.
29+
#
30+
# Sleep:
31+
# Sleep <time> Sleep for a set amount of <time> in seconds
32+
#
33+
# Type:
34+
# Type[@<time>] "<characters>" Type <characters> into the terminal with a
35+
# <time> delay between each character
36+
#
37+
# Keys:
38+
# Escape[@<time>] [number] Press the Escape key
39+
# Backspace[@<time>] [number] Press the Backspace key
40+
# Delete[@<time>] [number] Press the Delete key
41+
# Insert[@<time>] [number] Press the Insert key
42+
# Down[@<time>] [number] Press the Down key
43+
# Enter[@<time>] [number] Press the Enter key
44+
# Space[@<time>] [number] Press the Space key
45+
# Tab[@<time>] [number] Press the Tab key
46+
# Left[@<time>] [number] Press the Left Arrow key
47+
# Right[@<time>] [number] Press the Right Arrow key
48+
# Up[@<time>] [number] Press the Up Arrow key
49+
# Down[@<time>] [number] Press the Down Arrow key
50+
# PageUp[@<time>] [number] Press the Page Up key
51+
# PageDown[@<time>] [number] Press the Page Down key
52+
# Ctrl+<key> Press the Control key + <key> (e.g. Ctrl+C)
53+
#
54+
# Display:
55+
# Hide Hide the subsequent commands from the output
56+
# Show Show the subsequent commands in the output
57+
58+
Output yay.gif
59+
60+
Require echo
61+
62+
Set Shell "bash"
63+
Set FontSize 32
64+
Set Width 1200
65+
Set Height 600
66+
67+
Type "paru -Ss spotify" Sleep 500ms Enter
68+
69+
Sleep 5s

0 commit comments

Comments
 (0)