From rusty_striker, 1 Week ago, written in Plain Text.
Embed
  1. # My notes on how to get started in maintaining packages for artixlinux (from a noob)
  2.  
  3. Some setup:
  4.  
  5. 1. talk to nous (maybe someone else can do it for you as well?) and
  6.         get gitea access and everything
  7. 2. set ssh and gpg keys for gitea
  8. 3. set git to use the correct port for artixlinux.org, edit ~/.ssh/config and add the following lines
  9. ```
  10. Host *.artixlinug.org
  11.         Port 43210
  12. ```
  13. 4. get the artix build tools (`pacman -S artix-tools`)
  14. 5. set up artools:
  15.         1. copy the artools config from the /etc to your local user
  16.         `cp /etc/artools/artools-pkg.conf ~/.config/artools/`
  17.         2. generate a gitea token and insert it to the correct spot in the artools
  18.         config file (should be line 22, starts with `GIT_TOKEN`, also uncomment the line)
  19. 6. set packager user and email in makepkg.conf (PACKAGER line)
  20. 7. (optional) set up artix specific git user and email:
  21.         1. in ~/.gitconfig add the following
  22.         ```
  23.         [includeIf "gitdir:[artixpkg working directory]"]
  24.                 path = ~/.gitconfig-artix
  25.         ```
  26.         2. in ~/.gitconfig-artix:
  27.         ```
  28.         [user]
  29.                 name = Your name
  30.                 email = your [email protected]
  31.         ```
  32.  
  33. Assuming i remembered the setup correctly, you should now be able to work on stuff
  34.  
  35. take a loot at https://gitea.artixlinux.org/artix/documentation/src/branch/master/Notes%20for%20packagers.md
  36.  
  37. mostly it seems the usual way to do stuff is along the lines of (replace $p for package name):
  38.  
  39. 1. artixpkg git clone $p
  40. 2. artixpkg repo import $p (should show a diff of the PKGBUILD, make sure no systemd stuff creeps in)
  41. 3. artixpkg repo add [package repo] $p (should make a commit for you)
  42. 4. artixpkg git push
  43.  
captcha