update ghostty

- refactor remaiing source packages to new standard
This commit is contained in:
Matthew Stobbs
2025-03-29 15:21:34 -06:00
parent 5645cc7dd6
commit 59a31858f4
9 changed files with 107 additions and 55 deletions

View File

@@ -24,7 +24,7 @@
git_repo: "{{ pkgconfig.neovim.git_repo }}" git_repo: "{{ pkgconfig.neovim.git_repo }}"
git_path: "{{ d_tempdir.path }}/neovim" git_path: "{{ d_tempdir.path }}/neovim"
build_type: "{{ pkgconfig.neovim.build_type }}" build_type: "{{ pkgconfig.neovim.build_type }}"
clean: "{{ pkgconfig.neovim.clean_install }}" clean: "{{ pkgconfig_neovim.clean | default(default.clean_src) }}"
installed_files: "{{ pkgconfig.neovim.build_installed_files }}" installed_files: "{{ pkgconfig.neovim.build_installed_files }}"
- name: Set neovim config for appimage install - name: Set neovim config for appimage install

View File

@@ -6,4 +6,4 @@
installed_files: "{{ pkgconfig.nwg_hello.build_installed_files }}" installed_files: "{{ pkgconfig.nwg_hello.build_installed_files }}"
git_path: "{{ d_tempdir.path }}/nwg-hello" git_path: "{{ d_tempdir.path }}/nwg-hello"
build_deps: "{{ pkgconfig.nwg_hello.bulid_deps[ansible_os_family] }}" build_deps: "{{ pkgconfig.nwg_hello.bulid_deps[ansible_os_family] }}"
clean: "{{ pkgconfig.nwg_hello.clean | default(false) }}" clean: "{{ pkgconfig_nwg_hello_clean | default(default.clean_src) }}"

View File

@@ -6,4 +6,4 @@
build_deps: "{{ pkgconfig.sdbus_cpp_2.build_deps[ansible_os_family] }}" build_deps: "{{ pkgconfig.sdbus_cpp_2.build_deps[ansible_os_family] }}"
git_path: "{{ d_tempdir.path }}/sdbus-cpp" git_path: "{{ d_tempdir.path }}/sdbus-cpp"
prefix: "/usr/local" prefix: "/usr/local"
clean: "{{ pkgconfig.sdbus_cpp_2.clean }}" clean: "{{ pkgconfig_sdbus_cpp_2_clean | default(default.clean_src) }}"

View File

@@ -5,3 +5,6 @@
repo: "{{ pkgconfig.uwsm.repo }}" repo: "{{ pkgconfig.uwsm.repo }}"
build_deps: "{{ pkgconfig.uwsm.build_deps[ansible_os_family] }}" build_deps: "{{ pkgconfig.uwsm.build_deps[ansible_os_family] }}"
deps: "{{ pkgconfig.uwsm.deps[ansible_os_family] }}" deps: "{{ pkgconfig.uwsm.deps[ansible_os_family] }}"
clean: "{{ pkgconfig_uwsm_clean | default(default.clean_src) }}"
installed_files: "{{ pkgconfig.uwsm.build_installed_files }}"
prefix: "/usr/local"

View File

@@ -1,24 +1,47 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Ensure directories exist - name: Remove existing install {{ pkg }}
when:
- neovide.clean
become: "{{ ext_become }}"
loop: "{{ neovide.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file: ansible.builtin.file:
state: directory state: absent
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}" path: "{{ path.prefix }}/{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_neovide_inst
ansible.builtin.stat:
path: "{{ path.bin }}/neovide"
- name: Build and install {{ pkg }}
when:
- not state_neovide_inst.stat.exists
block:
- name: Ensure directories exist
become: true become: true
loop: loop:
- share/icons - share/icons
- share/applications - share/applications
loop_control: loop_control:
loop_var: _dir loop_var: _dir
ansible.builtin.file:
state: directory
path: "{{ path.prefix }}/{{ _dir }}"
mode: '0755'
- name: Copy neovide icon - name: Copy neovide icon
become: true become: true
ansible.builtin.copy: ansible.builtin.copy:
src: neovide/icon.png src: neovide/icon.png
dest: "{{ pkgconfig_neovide.install_prefix }}/share/icons/neovide.png" dest: "{{ path.prefix }}/share/icons/neovide.png"
mode: '0644'
- name: Copy neovide.desktop - name: Copy neovide.desktop
become: true become: true
ansible.builtin.template: ansible.builtin.template:
src: neovide/neovide.desktop src: neovide/neovide.desktop
dest: "{{ pkgconfig_neovide.install_prefix }}/share/applications/neovide.desktop" dest: "{{ path.prefix }}/share/applications/neovide.desktop"
mode: '0644'

View File

@@ -1,10 +1,10 @@
# vim: set filetype=yaml.ansible : # vim: set filetype=yaml.ansible :
--- ---
- name: Clean existing install - name: Clean existing install
become: "{{ ext_become }}"
when: when:
- neovim.installed_files is defined - neovim.installed_files is defined
- neovim.clean - neovim.clean
become: "{{ ext_become }}"
loop: "{{ neovim.installed_files }}" loop: "{{ neovim.installed_files }}"
loop_control: loop_control:
loop_var: file loop_var: file

View File

@@ -1,27 +1,49 @@
- name: Clone git repository {{ pkg }} # vim: set filetype=yaml.ansible :
---
- name: Remove existing install {{ pkg }}
when:
- uwsm.clean
become: true
loop: "{{ uwsm.installed_files }}"
loop_control:
loop_var: file
ansible.builtin.file:
state: absent
path: "{{ file }}"
- name: Check for installed {{ pkg }}
register: stat_uwsm_inst
ansible.builtin.stat:
path: "{{ uwsm.prefix }}"
- name: Build and install {{ uwsm }}
when:
- not stat_uwsm_inst.stat.exists
block:
- name: Clone git repository {{ pkg }}
ansible.builtin.git: ansible.builtin.git:
depth: 1 depth: 1
dest: "{{ d_tempdir.path }}/uwsm" dest: "{{ d_tempdir.path }}/uwsm"
repo: "{{ uwsm.repo }}" repo: "{{ uwsm.repo }}"
version: "v{{ uwsm.vers }}" version: "v{{ uwsm.vers }}"
- name: Build {{ pkg }} - name: Build {{ pkg }}
ansible.builtin.command: ansible.builtin.command:
creates: "{{ d_tempdir.path }}/uwsm/build" creates: "{{ d_tempdir.path }}/uwsm/build"
chdir: "{{ d_tempdir.path }}/uwsm" chdir: "{{ d_tempdir.path }}/uwsm"
argv: argv:
- meson - meson
- setup - setup
- --prefix={{ hyprland.prefix }} - --prefix={{ uwsm.prefix }}
- -Duuctl=enabled - -Duuctl=enabled
- -Dfumon=enabled - -Dfumon=enabled
- -Duwsm-app=enabled - -Duwsm-app=enabled
- build - build
- name: Install {{ pkg }} - name: Install {{ pkg }}
become: true become: true
ansible.builtin.command: ansible.builtin.command:
creates: "{{ hyprland.prefix }}/bin/uwsm" creates: "{{ uwsm.prefix }}/bin/uwsm"
chdir: "{{ d_tempdir.path }}/uwsm" chdir: "{{ d_tempdir.path }}/uwsm"
argv: argv:
- meson - meson

View File

@@ -1,6 +1,5 @@
ghostty: ghostty:
clean_install: false version: v1.1.3
version: v1.1.2
optimize: ReleaseFast optimize: ReleaseFast
git_repo: https://github.com/ghostty-org/ghostty git_repo: https://github.com/ghostty-org/ghostty
pkg_deps: pkg_deps:

View File

@@ -15,3 +15,8 @@ uwsm:
- newt - newt
- wofi - wofi
- libnotify - libnotify
build_installed_files:
- bin/uwsm
- share/uwsm
- share/doc/uwsm
- share/licenses/uwsm