Migrar para AUR 4
Closed this issue · 1 comments
alexandre-mbm commented
Sair do GitHub ou apenas fazer espelhar?
Ref. 1:
Ref. 2:
alexandre-mbm commented
Exemplo de execução para ./subaur4 dangerous-jack-connector
:
remove the path from version control
------------------------------------
$ git rm -r --cached dangerous-jack-connector
rm 'dangerous-jack-connector/PKGBUILD'
rm 'dangerous-jack-connector/dangerous-jack-connector.install'
making backup
-------------
$ mv dangerous-jack-connector dangerous-jack-connector_aur4_bak
add the AUR 4 package as a submodule at the previous path
---------------------------------------------------------
$ git submodule add -f ssh+git://aur@aur4.archlinux.org/dangerous-jack-connector.git dangerous-jack-connector
Cloning into 'dangerous-jack-connector'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
fatal: You are on a branch yet to be born
Unable to checkout submodule 'dangerous-jack-connector'
restore uncommited/unversioned files from backup
------------------------------------------------
$ cp -r dangerous-jack-connector_aur4_bak/dangerous-jack-connector.install dangerous-jack-connector_aur4_bak/PKGBUILD dangerous-jack-connector
remove backup directory
-----------------------
$ rm -rf dangerous-jack-connector_aur4_bak
enter submodule direcotory
--------------------------
$ pushd dangerous-jack-connector
~/Git/arch-tests/arch-pkgs/dangerous-jack-connector ~/Git/arch-tests/arch-pkgs
generating .SRCINFO
-------------------
$ mksrcinfo
adding files to git
-------------------
$ git add .
commit on child repository
--------------------------
[master (root-commit) 1d54048] Begins as submodule at GitHub alexandre-mbm/arch-pkgs
3 files changed, 54 insertions(+)
create mode 100644 .SRCINFO
create mode 100644 PKGBUILD
create mode 100644 dangerous-jack-connector.install
exit submodule direcotory
-------------------------
$ popd
~/Git/arch-tests/arch-pkgs
retry the submodule
-------------------
$ git submodule add -f ssh+git://aur@aur4.archlinux.org/dangerous-jack-connector.git dangerous-jack-connector
Adding existing repo at 'dangerous-jack-connector' to the index
commit on root repository
-------------------------
[master 3f16285] dangerous-jack-connector: converted to AUR 4 submodule
4 files changed, 4 insertions(+), 36 deletions(-)
create mode 160000 dangerous-jack-connector
delete mode 100644 dangerous-jack-connector/PKGBUILD
delete mode 100644 dangerous-jack-connector/dangerous-jack-connector.install