From 86847f608699e9172c8cccffed936312b9ba6475 Mon Sep 17 00:00:00 2001 From: exu Date: Sat, 29 Jul 2023 15:00:29 +0200 Subject: [PATCH] Add Arch Linux and PKGBUILD pages --- pages/02.linux/arch-linux/default.en.md | 6 ++ .../arch-linux/pkgbuild/default.en.md | 61 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 pages/02.linux/arch-linux/default.en.md create mode 100644 pages/02.linux/arch-linux/pkgbuild/default.en.md diff --git a/pages/02.linux/arch-linux/default.en.md b/pages/02.linux/arch-linux/default.en.md new file mode 100644 index 0000000..77a012c --- /dev/null +++ b/pages/02.linux/arch-linux/default.en.md @@ -0,0 +1,6 @@ +--- +title: "Arch Linux" +visible: true +--- + +[toc] diff --git a/pages/02.linux/arch-linux/pkgbuild/default.en.md b/pages/02.linux/arch-linux/pkgbuild/default.en.md new file mode 100644 index 0000000..472f42c --- /dev/null +++ b/pages/02.linux/arch-linux/pkgbuild/default.en.md @@ -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 .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]