# My notes on how to get started in maintaining packages for artixlinux (from a noob)
Some setup:
1. talk to nous (maybe someone else can do it for you as well?) and
get gitea access and everything
2. set ssh and gpg keys for gitea
3. set git to use the correct port for artixlinux.org, edit ~/.ssh/config and add the following lines
```
Host *.artixlinug.org
Port 43210
```
4. get the artix build tools (`pacman -S artix-tools`)
5. set up artools:
1. copy the artools config from the /etc to your local user
`cp /etc/artools/artools-pkg.conf ~/.config/artools/`
2. generate a gitea token and insert it to the correct spot in the artools
config file (should be line 22, starts with `GIT_TOKEN`, also uncomment the line)
6. set packager user and email in makepkg.conf (PACKAGER line)
7. (optional) set up artix specific git user and email:
1. in ~/.gitconfig add the following
```
[includeIf "gitdir:[artixpkg working directory]"]
path = ~/.gitconfig-artix
```
2. in ~/.gitconfig-artix:
```
[user]
name = Your name
```
Assuming i remembered the setup correctly, you should now be able to work on stuff
take a loot at https://gitea.artixlinux.org/artix/documentation/src/branch/master/Notes%20for%20packagers.md
mostly it seems the usual way to do stuff is along the lines of (replace $p for package name):
1. artixpkg git clone $p
2. artixpkg repo import $p (should show a diff of the PKGBUILD, make sure no systemd stuff creeps in)
3. artixpkg repo add [package repo] $p (should make a commit for you)
4. artixpkg git push
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}