python rewrite for adding package tested and now works (release only, vcs untested)
This commit is contained in:
		
							parent
							
								
									22e290db9d
								
							
						
					
					
						commit
						2acdc5284a
					
				@ -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'])
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,5 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
/usr/bin/mksrcinfo
 | 
			
		||||
 | 
			
		||||
git add .SRCINFO
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,6 @@ install=
 | 
			
		||||
changelog=
 | 
			
		||||
noextract=()
 | 
			
		||||
source=("{{ pkg['srcurl'] }}"
 | 
			
		||||
        "{{ pkg['srcfile'].sig }}")
 | 
			
		||||
        "{{ pkg['srcfile'] }}.sig")
 | 
			
		||||
sha512sums=('{{ pkg['srchash'] }}'
 | 
			
		||||
            'SKIP')
 | 
			
		||||
 | 
			
		||||
@ -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'] }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
Subproject commit e297e97c7a70149c4baa173940bbc3d166a035fc
 | 
			
		||||
Subproject commit 739223d5f59f6922d7532dccd56ee4e383d36d22
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user