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
allow_duplicates: true
vars:
pkg_names: '["dehydrated-git"]'
packages:
- dehydrated-git
aur_user: git
### UPSTREAM END ⇒ ###

View File

@ -3,7 +3,7 @@
# 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.
# mandatory parameters: pkg_name and aur_user
# mandatory parameters: pkg_name, pre_cmd, aur_user
- name: AUR → {{pkg_name}} → read current version
shell: |
@ -40,6 +40,20 @@
- name: AUR → {{pkg_name}} → work with the recipe
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
command: >
bash -c

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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