python rewrite for adding package tested and now works (release only, vcs untested)

This commit is contained in:
brent s 2016-11-16 02:28:42 -05:00
parent 22e290db9d
commit 2acdc5284a
7 changed files with 9 additions and 13 deletions

View File

@ -192,7 +192,7 @@ def aur_create(pkg):
## ADD THE SUBMODULE TO THE MAIN AUR TREE ##
def aur_submodule(pkg):
aur_pkgs_repo = git.Repo(aur_pkgs_dir)
aur_pkgs_repo.create_submodule(pkg['name'],aur_pkgs_dir + '/' + pkg['name'], url='aur@aur.archlinux.org:' + pkg['name'])
aur_pkgs_repo.create_submodule(pkg['name'], aur_pkgs_dir + '/' + pkg['name'], url='aur@aur.archlinux.org:' + pkg['name'])
aur_pkgs_repo.index.commit("adding {0}".format(pkg['name']))
# Comment me out if you don't have access to upstream:
aur_pkgs_repo.remotes.origin.push()
@ -215,3 +215,4 @@ if __name__ == "__main__":
sanity_checks()
aur_create(pkg)
aur_submodule(pkg)
print("Done! Successfully added {0} to the AUR and your local AUR meta-repository.".format(pkg['name'])

View File

@ -1,7 +1,5 @@
#!/bin/bash

#!/bin/bash

/usr/bin/mksrcinfo

git add .SRCINFO

View File

@ -4,7 +4,7 @@ pkgrel=1
pkgdesc="{{ pkg['desc'] }}"
arch=( 'i686' 'x86_64' )
url="{{ pkg['site'] }}"
license=({% for license in pkg['license'] %}'{{ license }}' {% endfor %}){% if pkg['deps'] is defined and pkg['deps']|length > 0 %}
license=( {% for license in pkg['license'] %}'{{ license }}' {% endfor %}){% if pkg['deps'] is defined and pkg['deps']|length > 0 %}
depends=( {% for dep in pkg['deps'] %}'{{ dep }}' {% endfor %}){% endif %}{% if pkg['optdeps'] is defined and pkg['optdeps']|length > 0 %}
optdepends=( {% for dep in pkg['optdeps'] %}'{{ dep }}' {% endfor %}){% endif %}{% if pkg['makedeps'] is defined and pkg['makedeps']|length > 0 %}
makedepends=( {% for dep in pkg['makedeps'] %}'{{ dep }}' {% endfor %}){% endif %}

View File

@ -2,6 +2,6 @@ install=
changelog=
noextract=()
source=("{{ pkg['srcurl'] }}"
"{{ pkg['srcfile'].sig }}")
"{{ pkg['srcfile'] }}.sig")
sha512sums=('{{ pkg['srchash'] }}'
'SKIP')

View File

@ -6,17 +6,14 @@ pkgbase = {{ pkg['name'] }}
pkgrel = 1
url = {{ pkg['site'] }}
arch = i686
arch = x86_64
{% for license in pkg['license'] %}
license = {{ license }}
{% endfor %}{% if pkg['deps'] is defined and pkg['deps']|length > 0 %}{% for dep in pkg['deps'] %}
arch = x86_64{% for license in pkg['license'] %}
license = {{ license }}{% endfor %}{% if pkg['deps'] is defined and pkg['deps']|length > 0 %}{% for dep in pkg['deps'] %}
depends = {{ dep }}{% endfor %}{% endif %}{% if pkg['optdeps'] is defined and pkg['optdeps']|length > 0 %}{% for dep in pkg['optdeps'] %}
optdepends = {{ dep }}{% endfor %}{% endif %}
source = {{ pkg['srcurl'] }}{% if pkg['srcfile'] is defined %}
source = {{ pkg['srcfile'] }}{% endif %}
source = {{ pkg['srcfile'] }}.sig{% endif %}
sha512sums = {{ pkg['srchash'] }}{% if pkg['srcfile'] is defined%}
sha512sums = SKIP{% endif %}

pkgname = {{ pkg['name'] }}



View File

@ -4,7 +4,7 @@ pkgrel=1
pkgdesc="{{ pkg['desc'] }}"
arch=( 'i686' 'x86_64' )
url="{{ pkg['site'] }}"
license=({% for license in pkg['license'] %}'{{ license }}' {% endfor %}){% if pkg['deps'] is defined and pkg['deps']|length > 0 %}
license=( {% for license in pkg['license'] %}'{{ license }}' {% endfor %}){% if pkg['deps'] is defined and pkg['deps']|length > 0 %}
depends=( {% for dep in pkg['deps'] %}'{{ dep }}' {% endfor %}){% endif %}{% if pkg['optdeps'] is defined and pkg['optdeps']|length > 0 %}
optdepends=( {% for dep in pkg['optdeps'] %}'{{ dep }}' {% endfor %}){% endif %}{% if pkg['makedeps'] is defined and pkg['makedeps']|length > 0 %}
makedepends=( {% for dep in pkg['makedeps'] %}'{{ dep }}' {% endfor %}){% endif %}

@ -1 +1 @@
Subproject commit e297e97c7a70149c4baa173940bbc3d166a035fc
Subproject commit 739223d5f59f6922d7532dccd56ee4e383d36d22