You are not logged in.

#1 2017-08-28 18:49:11

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

My first package: checkpkgs

Hello everyone,

I am Carlos, from Valencia (Spain). I introduce myself by submitting my first package to AUR. You can see it in checkpkg.

It is designed to look for updates of given packages (stdin or args). You can find examples and an animation in GitHub.

Hope you like it and thanks for all!

I will be grateful of receiving any type of feedback.

Last edited by carmilso (2017-09-10 17:21:42)

Offline

#2 2017-08-28 19:06:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: My first package: checkpkgs

Moving to Creating Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-08-28 19:11:53

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: My first package: checkpkgs

Why are you parsing HTML? The repositories have a JSON interface. See https://wiki.archlinux.org/index.php/Of … _interface


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2017-08-28 19:15:11

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

Alad wrote:

Why are you parsing HTML? The repositories have a JSON interface. See https://wiki.archlinux.org/index.php/Of … _interface

True! But at first moment I prefered not to use external programs like jq and finally I left it this way

Offline

#5 2017-08-28 19:18:34

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: My first package: checkpkgs

What advantages does this script have over a simple...

checkupdates | grep <pkgname>

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-08-28 19:22:15

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

slithery wrote:

What advantages does this script have over a simple...

checkupdates | grep <pkgname>

For any reason (that I don't know) maybe you don't want to update your local repositories. Also you can check if some package exists in official repositories or if you have a concrete package updated and you don't want to grep over the grep

Offline

#7 2017-08-28 19:33:29

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: My first package: checkpkgs

carmilso wrote:

For any reason (that I don't know) maybe you don't want to update your local repositories.

The checkupdates script doesn't update your pacman database, that's the reason it exists.

Also you can check if some package exists in official repositories

pacman -Ss <pkgname>

or if you have a concrete package updated and you don't want to grep over the grep

What's a concrete package?

Last edited by Slithery (2017-08-28 19:34:23)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-08-28 19:36:58

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

slithery wrote:
carmilso wrote:

For any reason (that I don't know) maybe you don't want to update your local repositories.

The checkupdates script doesn't update your pacman database, that's the reason it exists.


Also you can check if some package exists in official repositories

pacman -Ss <pkgname>

or if you have a concrete package updated and you don't want to grep over the grep

What's a concrete package?

Sorry. A package which update you are waiting to.

I know it exists checkupdates, but I find this package useful for specific tasks.

Offline

#9 2017-09-03 03:04:27

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: My first package: checkpkgs

Unfortunately, the name checkpkg clashes with the name of a script provided by the devtools package.

Offline

#10 2017-09-03 12:52:28

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

falconindy wrote:

Unfortunately, the name checkpkg clashes with the name of a script provided by the devtools package.

I don't really know how to change the name of my package without deleting it from AUR. Could you guide me?

Offline

#11 2017-09-03 14:44:39

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: My first package: checkpkgs

Upload a new package with a different name and create a merge request ("Submit Request" -> Merge)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#12 2017-09-03 17:10:40

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

Alad wrote:

Upload a new package with a different name and create a merge request ("Submit Request" -> Merge)

Is it also necessary to use replaces of PKGBUILD to avoid conflicts with systems where the package is already installed?

Offline

#13 2017-09-03 17:13:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: My first package: checkpkgs

replaces doesn't do much in the AUR. You want conflicts and provides. You can add replaces as well if you want.

Offline

#14 2017-09-03 17:56:46

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

carmilso wrote:
Alad wrote:

Upload a new package with a different name and create a merge request ("Submit Request" -> Merge)

Is it also necessary to use replaces of PKGBUILD to avoid conflicts with systems where the package is already installed?


Done! https://aur.archlinux.org/packages/checkpkgs/

Offline

#15 2017-09-09 17:59:07

carmilso
Member
From: València, España
Registered: 2017-08-28
Posts: 18
Website

Re: My first package: checkpkgs

I have upgraded the package to the version 1.1. The parse of the Official repositories web is now in JSON with jq as the user Alad recommended. Thanks for feedback!

checkpkgs
Changelog

Offline

Board footer

Powered by FluxBB