You are not logged in.

#1 2016-06-24 14:59:00

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 128

Existing folder as future AUR package [solved]

Hi:

I already read the wiki about how to submit packages to AUR. But seems that I can only starting populating my repro after I issue this command:

git clone git+ssh://aur@aur.archlinux.org/package_name.git

Is it possible to have a working and already populated directory and submit as AUR package? I already have my pkgbuild and .srcinfo files, but when I try to issue the above command, I got:

fatal: destination path 'gtk-theme-hooli' already exists and is not an empty directory.

Thanks.

Last edited by Joel (2016-06-24 16:15:51)


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.

Offline

#2 2016-06-24 15:17:21

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

Re: Existing folder as future AUR package [solved]

The simple solution - just rename your current directory and then move the files over to the new directory.

The 'proper' solution - Create a new AUR repo, initialize your current directory as a git repository and then add the AUR as a new remote...

ssh aur.archlinux.org setup-repo <name>
cd <name>
git init
git remote add origin git+ssh://aur@aur.archlinux.org/<name>.git

Last edited by Slithery (2016-06-24 15:19:13)


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

#3 2016-06-24 15:17:38

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

Re: Existing folder as future AUR package [solved]

Just clone it somewhere else, take note of git parameters that describe the upstream repositiry, then delete that empty cloned directory. 
Make use that all the real one's parameters are the same. Then push the real one. 

Edit: Too slow.

Last edited by ewaller (2016-06-24 15:18:31)


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 2016-06-24 15:17:46

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: Existing folder as future AUR package [solved]

Yes, see the second part of https://wiki.archlinux.org/index.php/Ar … ew_package

If your directory isn't a git repository, then you will need to 'git init' first.

EDIT: Just riding the reply flood.

Last edited by WorMzy (2016-06-24 15:18:21)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-06-24 16:15:25

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 128

Re: Existing folder as future AUR package [solved]

ah ok, got it. Thanks smile


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.

Offline

#6 2016-06-24 16:48:10

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Existing folder as future AUR package [solved]

I would like to point out that you can push to a nonexistent AUR repo and it will get created. wink

See my sig for how I handle AUR packaging, I happen to be quite biased in its favor.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2016-06-24 17:39:44

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Existing folder as future AUR package [solved]

Eschwartz wrote:

I would like to point out that you can push to a nonexistent AUR repo and it will get created. wink

See my sig for how I handle AUR packaging, I happen to be quite biased in its favor.

Slightly off-topic (I found it in the code Eschwartz is referring to), but can you point me at the meaning of the - in your here doc "cat <<- _EOF_". I can't find it. Search term hint?

EDIT: Forget I asked, I found it. It's for indentations.

Last edited by Awebb (2016-06-24 17:41:46)

Offline

Board footer

Powered by FluxBB