aur: allow pre-build commands

master
Yves G 2021-05-08 17:08:22 +02:00
parent d32a9f70e8
commit 6fb26de9ae
11 changed files with 51 additions and 51 deletions

View File

@ -15,7 +15,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: '["dehydrated-git"]' packages:
- dehydrated-git
aur_user: git aur_user: git
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###

View File

@ -3,7 +3,7 @@
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# mandatory parameters: pkg_name and aur_user # mandatory parameters: pkg_name, pre_cmd, aur_user
- name: AUR → {{pkg_name}} → read current version - name: AUR → {{pkg_name}} → read current version
shell: | shell: |
@ -40,6 +40,20 @@
- name: AUR → {{pkg_name}} → work with the recipe - name: AUR → {{pkg_name}} → work with the recipe
block: block:
- name: AUR → {{pkg_name}} → run custom pre-processing commands
shell: "{{pre_cmd}}"
args:
chdir: /var/tmp/{{aurjson.json.results[0].PackageBase}}
warn: false
when: pre_cmd
register: debugCustom
- name: AUR → {{pkg_name}} → see custom pre-processing commands result
debug:
var: debugCustom
when: pre_cmd
changed_when: false
- name: AUR → {{pkg_name}} → read the real version - name: AUR → {{pkg_name}} → read the real version
command: > command: >
bash -c bash -c

View File

@ -18,8 +18,9 @@
- name: AUR → installation - name: AUR → installation
include_tasks: install.yml include_tasks: install.yml
vars: vars:
pkg_name: "{{item}}" pkg_name: "{{(item is mapping) | ternary(item.pkg, item)}}"
with_items: "{{pkg_names}}" pre_cmd: "{{(item is mapping) | ternary(item.pre, '')}}"
with_items: "{{packages}}"
always: always:
- name: AUR → remove base-devel and dependencies - name: AUR → remove base-devel and dependencies
shell: | shell: |

View File

@ -15,10 +15,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - ldap-account-manager
"ldap-account-manager"
]
aur_user: git aur_user: git
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###

View File

@ -15,11 +15,9 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - php-zmq
"php-zmq", - movim
"movim"
]
aur_user: git aur_user: git
register: software register: software

View File

@ -26,22 +26,20 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - lua52-event
"lua52-event", - lua52-lpty
"lua52-lpty", - prosody-mod-auth-imap-hg
"prosody-mod-auth-imap-hg", - prosody-mod-auto-accept-subscriptions-hg
"prosody-mod-auto-accept-subscriptions-hg", - prosody-mod-filter-chatstates-hg
"prosody-mod-filter-chatstates-hg", - prosody-mod-http-upload-external-hg
"prosody-mod-http-upload-external-hg", - prosody-mod-offline-email-hg
"prosody-mod-offline-email-hg", - prosody-mod-smacks
"prosody-mod-smacks", - prosody-mod-throttle_presence
"prosody-mod-throttle_presence"
]
aur_user: git aur_user: git
# "prosody-mod-log-auth", # - prosody-mod-log-auth
# "prosody-mod-mam-archive", # - prosody-mod-mam-archive
# "prosody-mod-mam-muc", # - prosody-mod-mam-muc
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###
- name: merge upstream - name: merge upstream

View File

@ -15,10 +15,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - wallabag
"wallabag"
]
aur_user: git aur_user: git
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###

View File

@ -26,10 +26,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - collabora-online-server-nodocker
"collabora-online-server-nodocker"
]
aur_user: git aur_user: git
- name: create the nextcloud user - name: create the nextcloud user

View File

@ -15,10 +15,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - privatebin
"privatebin"
]
aur_user: git aur_user: git
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###

View File

@ -19,10 +19,8 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - pyruse
"pyruse"
]
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###
- name: merge upstream - name: merge upstream

View File

@ -22,15 +22,13 @@
name: aur.inc name: aur.inc
allow_duplicates: true allow_duplicates: true
vars: vars:
pkg_names: | packages:
[ - lua51-lualdap-git
"lua51-lualdap-git", - ssowat-git
"ssowat-git"
]
aur_user: git aur_user: git
# USUALLY NOT UP-TO-DATE… :-( # USUALLY NOT UP-TO-DATE… :-(
# "nginx-mainline-mod-ndk", # - nginx-mainline-mod-ndk
# "nginx-mainline-mod-lua", # - nginx-mainline-mod-lua
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###
- name: merge upstream - name: merge upstream