tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arch package

dufferzafar opened this issue · comments

I've built an Arch Linux Package for this tool, so people will easily be able to download it from AUR.

You can find it here: https://github.com/dufferzafar/arch-packages/blob/master/slit-bin/PKGBUILD

But I don't think I'll be able to maintain it - which involves version bumping it every time you release a new version.

It'll be a great help, if you're willing to maintain the package?

First of all thanks for the initiative

I can take over, but could you provide guideline of what's needed to be done, I am not familiar with arch pipeline.

Doc on how to create packages - You don't really have to go through this, since I've already created the package 😄

This is the doc you need to go through.

It may seem daunting at first, because Arch people take docs pretty seriously, but the main thing you need to do is clone an empty repo, add the PKGBUILD file to it and push (after you've setup keys etc.)


Copied from this reddit thread.

  • make yourself an SSH key
  • create ~/.ssh/config with this inside, IdentityFile pointing to your private key, set permissions - chmod 600 ~/.ssh/config
  • copy your public key(content of the pub) in to your profile on AUR4
  • test if you get authenticated ssh aur@aur4.archlinux.org help, which should return list of commands
  • now this command from the wiki - git clone ssh://aur@aur4.archlinux.org/foobar.git creates where you execute it a new folder named foobar, which is an initialized git repo with AUR set as its origin remote
  • you copy PKGBUILD in there, in to that new foobar folder
  • you also need .SRCINFO file, which gets generated when you use makepkg -S on your PKGBUILD file and you find it inside the resulting tarball, or you can use command mksrcinfo, provided by pkgbuild-introspection package
  • once you have these two files in there you can use basic git commands to push them to AUR
  • git add .
  • git commit -m 'whatever comment'
  • git push origin master

Actually there is already a package
https://aur.archlinux.org/packages/slit/

But it seems that it was not updated to new packaging (with slit as a library)

Maintained by Vincent Loupmon

The difference is that package requires golang to be installed and it builds the code from source.

The package I created slit-bin just fetches the binaries from GitHub and installs them!

AUR is filled with such two types of packages: ones that build from source & others that only download binaries.

FWIW I am the maintainer of slit-git

➜ pacman -Ss slit-git
aur/slit-git 1.2.0.r9.g7e3652e-2 (+0 0.00%) (Installed)
    A modern PAGER for viewing logs, get more than most in less time