You are not logged in.

#1 2015-07-06 22:57:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

[SOLVED]AUR4 - need guidance with creating a package from scratch

I am in the process of trying to move a couple of my packages to the AUR4.

I am trying to do this by hand as a learning exercise and as I only have a couple packages.   
It is not clear how to configure the git repository if one is not cloning an existing package.   I did try cloning a directory that does not yet exist wondering if the AUR4 site would provide an empty template.  No such luck.

If I just use git init, I get a git structure, of course, but it knows nothing about upstream.  I did clone dump, and examined its structure.  I could divine the information I need by doing that, but it strikes me that that is doing it the hard way.

What is the best practice for setting up the git repository if you do not plan to start from an existing project?

On a tangential subject, do I need to update, reset, or leave alone the pkgver information when I do this?

Last edited by ewaller (2015-07-07 05:07:02)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#2 2015-07-06 23:13:24

papajoke
Member
From: france
Registered: 2014-10-10
Posts: 42

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

ewaller wrote:

If I just use git init, I get a git structure, of course, but it knows nothing about upstream.

from a empty project, just add  git adress

git init 
git remote add origin aur@aur4.archlinux.org:/YOUR-NEW-PACKAGE.git

and at first push, the package is create on aur4

Last edited by papajoke (2015-07-06 23:14:19)


LTS - Fish - Kde - intel M100 - 16Go RAM - ssd

Online

#3 2015-07-06 23:19:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

papajoke wrote:
git remote add origin aur@aur4.archlinux.org:/YOUR-NEW-PACKAGE.git

and at first push, the package is create on aur4

Okay, I'll give that a shot.  If it works, I'll probably add that to the AUR wiki page.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-07-06 23:25:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

Yep, that was all it took.  Thanks.   The wiki states to not change the AUR4 section without going through the discussion page.  I'll take that route.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2015-07-06 23:31:20

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

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

FYI, I just cloned a non-existent package from aur4 and I got an empty git repo with all the right settings.  I don't know if I could fill it and push to aur4, I don't want to try as if it were successful it'd just create junk.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-07-06 23:48:52

CrashLog
Member
From: Finland
Registered: 2013-01-13
Posts: 136

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

Trilby wrote:

FYI, I just cloned a non-existent package from aur4 and I got an empty git repo with all the right settings.  I don't know if I could fill it and push to aur4, I don't want to try as if it were successful it'd just create junk.

That's exactly what I did. I cloned a non-existent repo, then added the necessary files and pushed it. It seems to have worked fine: https://aur4.archlinux.org/packages/flake8-pep257/

Last edited by CrashLog (2015-07-06 23:49:11)


"There are no problems, only opportunities for solutions."

Offline

#7 2015-07-06 23:50:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

that Doh!  So it does.   I expected the .git to be in the directory from which I ran it.  There was not a .git in the directory when I was done.  I missed that there was a brand new directory by the name I had chosen (complete with .git structure) because my ls command was only looking for dot files hmm

Okay, both techniques work.  Thanks


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2015-07-06 23:51:12

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

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

ewaller wrote:

that Doh!  So it does.   I expected ...

Noobs hmm

wink


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2015-07-07 11:35:46

papajoke
Member
From: france
Registered: 2014-10-10
Posts: 42

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

other soluce use github or  gitlab
create normal repositry with github (test-aur4)
in local

git init
git remote add origin https://<login>@github.com/<login>/test-aur4.git

and the magic :

git remote set-url origin --push --add https://<login>@github.com/<login>/test-aur4.git
git remote set-url origin --push --add aur@aur4.archlinux.org:/test-aur4.git

now you can use push and pull request from github
ps: only branch master is push on aur4

Last edited by papajoke (2015-07-07 11:38:35)


LTS - Fish - Kde - intel M100 - 16Go RAM - ssd

Online

#10 2015-07-08 05:04:26

severach
Member
Registered: 2015-05-23
Posts: 198

Re: [SOLVED]AUR4 - need guidance with creating a package from scratch

Using ls is noob. mc is 1337.

Offline

Board footer

Powered by FluxBB