Add Arch Linux and PKGBUILD pages

This commit is contained in:
exu 2023-07-29 15:00:29 +02:00
parent dbc0b2b7e3
commit 86847f6086
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
title: "Arch Linux"
visible: true
---
[toc]

View File

@ -0,0 +1,61 @@
---
title: PKGBUILD
visible: true
---
[toc]
_TODO:_ patching
https://wiki.archlinux.org/index.php?title=Patching_packages&useskinversion=1
Get hashsums:
`$ makepkg -g`
Build package:
`$ makepkg`
Build package with AUR dependencies:
_Officially, AUR-helpers are not recommended and AUR-dependencies should be downloaded manually_
`$ paru -U`
Afterwards install with `$ paru -U <package>.tar.zst`
Install dependencies:
`$ makepkg -s`
Install package after successful build:
`$ makepkg -i`
Just extract package and run `prepare()`
`--nobuild`
Don't extract package and don't run `prepare()`
`--noextract`
Create SRCINFO
`$ makepkg --printsrcinfo > .SRCINFO`
Using paru to build package in clean chroot for testing
https://old.reddit.com/r/archlinux/comments/tkeuy5/using_paru_u_chroot_to_build_a_pkgbuild_in_a/
## Upload new package
Initialise new repo with `master` branch
[shuser]
```
git -c init.defaultbranch=master init
```
[/shuser]
Add remote for AUR and fetch to initialise
[shuser]
```
git remote add aur ssh://aur@aur.archlinux.org/[PKGBASE].git
git fetch aur
```
[/shuser]