aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: 367b1ae786e7c7e7b1fb098633ae3e961d6994f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# simcamera

`simcamera` is a small desktop camera app written in Python with Tkinter, Pillow, and `ffmpeg`.

## Local build on Arch

```bash
makepkg -si
simcamera
```

## Runtime dependencies

- `python`
- `python-pillow`
- `tk`
- `ffmpeg`

Optional:

- `libnotify`

## Before publishing to AUR

1. Put this project in a git repository.
2. Replace the `url=` value in `PKGBUILD` with your real repository URL.
3. Decide on a real license and update `license=`.
4. Make sure `simcamera` does not already exist in AUR.
5. Generate `.SRCINFO` with:

```bash
makepkg --printsrcinfo > .SRCINFO
```

6. Copy `PKGBUILD`, `.SRCINFO`, `camera.py`, `simcamera`, and `simcamera.desktop` into your AUR package repository.

## Publish to AUR

Create an AUR account and add your SSH public key there, then:

```bash
git init -b master
git remote add aur ssh://aur@aur.archlinux.org/simcamera.git
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO camera.py simcamera simcamera.desktop README.md .gitignore
git commit -m "Initial AUR release"
git push aur master
```

If you prefer to start from the empty AUR repo instead:

```bash
git clone ssh://aur@aur.archlinux.org/simcamera.git
cd simcamera
```

Then copy in the package files, commit, and push.

## Update And Push Changes

When you edit the app or package files, update `.SRCINFO` before pushing to AUR:

```bash
makepkg --printsrcinfo > .SRCINFO
```

Check what changed:

```bash
git status
```

Commit the update:

```bash
git add camera.py PKGBUILD .SRCINFO simcamera simcamera.desktop README.md .gitignore
git commit -m "Describe the change"
```

Push to GitHub:

```bash
git push origin master
```

Push to AUR:

```bash
git push aur master
```

If you changed `PKGBUILD`, always regenerate `.SRCINFO` before pushing to AUR.