You are not logged in.

#1 2013-06-23 17:11:29

Kalrish
Member
Registered: 2013-02-27
Posts: 62

[SOLVED] Package without URL

Hello everyone!

I've made a very small package. It's made up of only two files (two small shell scripts), so I added them along with the PKGBUILD in the source tarball. I don't have a server to host the files, nor would I like to set up one (or register somewhere) to just store three kilobytes. So, my PKGBUILD has no url variable.

I've looked in the official guidelines, at the wiki, and it just says you have to put an URL. What should I do, then?

Thanks in advance. Best regards,
Kalrish

Last edited by Kalrish (2013-06-23 18:00:19)

Offline

#2 2013-06-23 17:18:27

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

Re: [SOLVED] Package without URL

Host them on Github. Putting the source directly in the AUR is forbidden and may get the package deleted anyway.

Offline

#3 2013-06-23 17:19:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Package without URL

As for the 'url' (not 'source'), I've seen packages that had e.g. www.archlinux.org or a link to a thread discussing it, like https://aur.archlinux.org/packages/bigpkg/

Last edited by karol (2013-06-23 17:20:52)

Offline

#4 2013-06-23 17:29:03

Kalrish
Member
Registered: 2013-02-27
Posts: 62

Re: [SOLVED] Package without URL

I prefer karol's solution. I would have opened a thread anyway, so maybe it's not a bad idea. As for Scimmia's answer... really? Even if they are small, plain bash scripts?

Offline

#5 2013-06-23 17:36:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Package without URL

I think the github way is better, it's likely the scripts will change over time and keeping them in a VCS wouldn't hurt.
There are some packages that have just files (not urls) in the source array, e.g. https://aur.archlinux.org/packages/pk/p … d/PKGBUILD

Offline

#6 2013-06-23 17:55:17

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

Re: [SOLVED] Package without URL

Yes, there are some that do it, but I have seen packages removed from the AUR because of it when someone brings it up to a TU. The AUR is not meant to host your source code. It may just be a small 3K bash script, but then where is the line? If 3K is ok, how about 5K? 10K? 100? 1M?

Offline

#7 2013-06-23 18:00:06

Kalrish
Member
Registered: 2013-02-27
Posts: 62

Re: [SOLVED] Package without URL

karol wrote:

it's likely the scripts will change over time

Scimmia wrote:

Yes, there are some that do it, but I have seen packages removed from the AUR because of it when someone brings it up to a TU. The AUR is not meant to host your source code. It may just be a small 3K bash script, but then where is the line? If 3K is ok, how about 5K? 10K? 100? 1M?

Enough reasons. The scripts may not change over time, but Scimmia is absolutely right -I should have thought about it before-. I'll go with the github approach.

Thank you both! Marking as solved.

Best regards,
Kalrish

Offline

#8 2013-06-23 18:01:32

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: [SOLVED] Package without URL

I'm with Scimmia, but have additional reasons: size isn't the only relevant factor.  When packages do contain some form of code in the aur tarball (patches, install scripts, etc) it is (or should be!) only because the upstream source of the original source code (and/or installation procedure) is incompatible with arch linux.  So this might include a patch to put things in the right directory, or a script to go in /usr/bin/ to launch a binary put in an odd location.

But in this case you are the upstream source.  They're small ... so?  They're yours.  You don't need to fix someone else's work and include the fix in the tarball ... it's your work.

Also, github is handy for many other purposes.  And I can assure you they do not 'spam' you with any sort of adds, or any nonsense.  They also have *phenomenal* service reps.  I emailed a question one day and within hours I had a very courteous, clear, and complete answer ... and I'm not subscribing, just using their free service.  I avoid signing up for things as much as possible, but github is really just a great company/organization/site/whatever.

Last edited by Trilby (2013-06-23 18:04:00)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2013-06-23 18:15:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,728

Re: [SOLVED] Package without URL

Trilby wrote:

And I can assure you they do not 'spam' you with any sort of adds, or any nonsense. ...I avoid signing up for things as much as possible, but github is really just a great company/organization/site/whatever.

Absolutely agree, 100%
Also, as long as you have a Github account, you can do neat things like building git archives of /etc or ~/,config and pushing them to github -- makes recovery from mistakes a snap.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2013-06-23 18:19:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Package without URL

github is definitely a much more powerful and flexible solution e.g. people using other distros can easily get these scripts too.

Offline

#11 2013-06-23 18:34:04

Kalrish
Member
Registered: 2013-02-27
Posts: 62

Re: [SOLVED] Package without URL

I didn't know about that. One really learns something new every day. Thanks! I've happily created an account, and am reading the newbie guides.

Offline

Board footer

Powered by FluxBB