Skip to content

Commit 528ca23

Browse files
committed
Add Arch Linux packaging instructions
1 parent 17f2a56 commit 528ca23

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

doc/dev_guide/packaging.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,58 @@
2323

2424
## Arch Linux (PKGBUILD)
2525

26-
TODO Instructions
26+
Steps to update and release the Arch Linux package
27+
28+
1. Install required packages:
29+
30+
```bash
31+
sudo pacman -S base-devel
32+
```
33+
34+
2. Clone the ApiDash AUR repository:
35+
36+
```bash
37+
git clone https://aur.archlinux.org/apidash-bin.git
38+
cd apidash-bin
39+
```
40+
41+
3. Get the recent `.deb` release from the [releases page](https://github.com/foss42/apidash/releases/)
42+
43+
4. Generate new checksums:
44+
45+
```bash
46+
sha512sum apidash-linux-amd64.deb LICENSE
47+
```
48+
49+
5. Update the `PKGBUILD` file:
50+
51+
- Change `pkgver` to the new version
52+
- Reset `pkgrel` to 1
53+
- Update `sha512sums` with the new checksums
54+
55+
6. Build the package
56+
57+
```bash
58+
# Clean build files (if they exist from previous builds)
59+
# rm -rf pkg/ src/
60+
61+
# Build and install the package
62+
makepkg -si
63+
```
64+
65+
7. Update .SRCINFO:
66+
67+
```bash
68+
makepkg --printsrcinfo > .SRCINFO
69+
```
70+
71+
8. Commit and push the changes:
72+
73+
```bash
74+
git add PKGBUILD .SRCINFO
75+
git commit -m "Update to v[NEW_VERSION]"
76+
git push
77+
```
2778

2879
## FlatHub (Flatpak)
2980

0 commit comments

Comments
 (0)