fix packages
This commit is contained in:
@@ -2,32 +2,16 @@
|
||||
---
|
||||
- name: Build ghostty from source
|
||||
block:
|
||||
- name: Create temp path
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
prefix: ghostty.
|
||||
register: d_ghostty_tmp
|
||||
|
||||
- name: Clone ghostty git repository
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
dest: "{{ d_ghostty_tmp.path }}/ghostty"
|
||||
repo: "{{ pkgconfig_ghostty.git_repo }}"
|
||||
version: "{{ pkgconfig_ghostty.version }}"
|
||||
dest: "{{ d_tempdir.path }}/ghostty"
|
||||
repo: "{{ ghostty.repo }}"
|
||||
version: "{{ ghostty.vers }}"
|
||||
|
||||
- name: Build ghostty
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ d_ghostty_tmp.path }}/ghostty"
|
||||
cmd: "zig build -D{{ pkgconfig_ghostty.optimize }}"
|
||||
become: "{{ ext_become }}"
|
||||
register: c_ghostty_build
|
||||
|
||||
- name: Install ghostty
|
||||
ansible.file.copy:
|
||||
src: "{{ d_ghostty_tmp.path }}/ghostty/zig-out/bin/ghostty"
|
||||
dest: "{{ pkgconfig_ghostty.install_prefix }}/bin/ghostty"
|
||||
owner: "{{ pkgconfig_ghostty.owner }}"
|
||||
group: "{{ pkgconfig_ghostty.group }}"
|
||||
mode: "0755"
|
||||
remote_src: true
|
||||
become: "{{ pkgconfig_ghostty.become }}"
|
||||
become_user: "{% if pkgconfig_ghostty.become %}{{ pkgconfig_ghostty.owner }}{% else %}~{% endif %}"
|
||||
ansible.builtin.command:
|
||||
chdir: "{{ d_tempdir.path }}/ghostty"
|
||||
cmd: "zig build -p {{ path.prefix }} -D{{ pkgconfig_ghostty.optimize }}"
|
||||
|
||||
@@ -14,12 +14,10 @@
|
||||
version: "{{ pkgconfig_neovim.version }}"
|
||||
|
||||
- name: Build and install neovim
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.make:
|
||||
chdir: "{{ d_nvim_tmp.path }}/neovim"
|
||||
chdir: "{{ d_tempdir.path }}/neovim"
|
||||
params:
|
||||
CMAKE_BUILD_TYPE: "{{ pkgconfig_neovim.build_type }}"
|
||||
CMAKE_INSTALL_PREFIX: "{{ pkgconfig_neovim.install_prefix }}"
|
||||
CMAKE_BUILD_TYPE: "{{ neovim.build_type }}"
|
||||
CMAKE_INSTALL_PREFIX: "{{ path.prefix }}"
|
||||
target: install
|
||||
become: "{{ pkgconfig_neovim.dobecome }}"
|
||||
become_user: "{% if pkgconfig_neovim.dobecome %}{{ pkgconfig_neovim.owner }}{% else %}~{% endif %}"
|
||||
when: not pkgconfig_neovim.use_appimage
|
||||
|
||||
Reference in New Issue
Block a user