mini-prompt icon indicating copy to clipboard operation
mini-prompt copied to clipboard

Added PKGBUILD for AUR

Open deckweiss opened this issue 4 years ago • 2 comments

I've added a PKGBUILD file so that you can distribute your project on AUR

Steps you need to follow:

  1. Create an account on https://aur.archlinux.org/ and follow https://wiki.archlinux.org/title/AUR_submission_guidelines#Authentication to add an ssh key and config for the authentication
  2. If you make changes to the PKGBUILD, test them by running makepkg -s or makepkg -si
  3. After changes create/update the .SRCINFO file by running makepkg --printsrcinfo > .SRCINFO
  4. git clone ssh://[email protected]/miniprompt-git.git This will create an empty repo if it doesn't exist yet with the name "miniprompt-git" on the AUR git. Later you can just keep pushing to it, to update your package in the AUR.
  5. Copy the PKGBUILD and .SRCINFO files into said empty repo
  6. git add -A && git commit -m 'Initial commit' && git push

What you have to keep in mind:

  • Usually it is considered bad practice to touch anything in the users home, so I've put the miniprompt script into /usr/bin as is recommended in the wiki. For the config files, I think it is a reasonable exception, so they will be installed in $XDG_CONFIG_HOME if set or $HOME/.config/miniprompt otherwise.
  • If you do not change the release version pkgver but want to update the PKGBUILD, you need to bump pkgrel, otherwise the package will not be updated in the AUR.
  • The pkgver should be updated automatically on run by the pkgver() function. This means, the users will get the newest version, even if you don't update the PKGBUILD, but it might be cleaner if you update it on each release.

Cheers

deckweiss avatar Nov 22 '21 14:11 deckweiss

Hey @Pocco81

do you still plan to look at this eventually, or would you like me to publish it on the AUR instead?

No stress, just wondering - cheers!

ghost avatar Dec 16 '21 23:12 ghost

Oh yeah definitely! I've just been busy with other things. I promise I'll publish it, eventually... :+1:

pocco81 avatar Dec 17 '21 00:12 pocco81