Skip to content

Conversation

@sebst
Copy link
Contributor

@sebst sebst commented Sep 27, 2024

No description provided.

@jhheider
Copy link
Contributor

are these supposed to be symlinks, or are there other binaries that need to be built?

@sebst sebst marked this pull request as draft September 27, 2024 15:49
@sebst
Copy link
Contributor Author

sebst commented Sep 27, 2024

are these supposed to be symlinks, or are there other binaries that need to be built?

Binaries

Should be those:

-rwxr-xr-x. 2 root root 1.3M Jan  1  1970 strip-ansi-escapes
-rwxr-xr-x. 2 root root  24M Jan  1  1970 wezterm
-rwxr-xr-x. 2 root root  70M Jan  1  1970 wezterm-gui
-rwxr-xr-x. 2 root root  25M Jan  1  1970 wezterm-mux-server

@jhheider
Copy link
Contributor

i can see you're still working, but this works for me to build them:

distributable:
  url: https://github.com/wez/wezterm/releases/download/{{version.tag}}/wezterm-{{version.tag}}-src.tar.gz
  strip-components: 1

versions:
  github: wez/wezterm/tags
  transform: v => v.replace(/^(\d{4})(\d{2})(\d{2})-.*$/, '$1.$2.$3')

dependencies:
  zlib.net: ^1.3
  linux:
    freetype.org: '*'
    freedesktop.org/fontconfig: '*'
    openssl.org: ^1.1

build:
  dependencies:
    rust-lang.org: '>=1.71<1.78'
    rust-lang.org/cargo: '*'
  script:
    - cargo install $ARGS --path strip-ansi-escapes
    - cargo install $ARGS --path sync-color-schemes
    - cargo install $ARGS --path wezterm
    - cargo install $ARGS --path wezterm-gui
    - cargo install $ARGS --path wezterm-mux-server
  env:
    ARGS:
      - --locked
      - --root {{prefix}}

provides:
  - bin/strip-ansi-escapes
  - bin/sync-color-schemes
  - bin/wezterm
  - bin/wezterm-gui
  - bin/wezterm-mux-server

test: test "$(wezterm --version)" = "wezterm {{version.tag}}"

@sebst sebst mentioned this pull request Sep 27, 2024
@jhheider
Copy link
Contributor

$ cat ~/.pkgx/x.org/x11/v1.8.10/lib/pkgconfig/x11.pc 
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

xthreadlib=-lpthread

Name: X11
Description: X Library
Version: 1.8.10
Requires: xproto kbproto
Requires.private: xcb >= 1.11.1
Cflags: -I${includedir} 
Libs: -L${libdir} -lX11
Libs.private: -lpthread

looks like you need x.org/xcb as a dep as well.

@jhheider
Copy link
Contributor

looks like they only provide a cask for macos on homebrew, so it'll be some trial-and-error to get the full list of linux libraries if wezterm doesn't specify them: https://github.com/Homebrew/homebrew-cask/blob/7db552eae14ba123c69e5e9a55f3ca395d8cfbec/Casks/w/wezterm.rb

@jhheider
Copy link
Contributor

jhheider commented Sep 27, 2024

hm, xcb-util.pc is not in x.org/xcb. looks like it's its own package: https://xcb.freedesktop.org/dist/

edit: this should be ready shortly.

@sebst
Copy link
Contributor Author

sebst commented Sep 27, 2024

looks like they only provide a cask for macos on homebrew, so it'll be some trial-and-error to get the full list of linux libraries if wezterm doesn't specify them: https://github.com/Homebrew/homebrew-cask/blob/7db552eae14ba123c69e5e9a55f3ca395d8cfbec/Casks/w/wezterm.rb

https://wezfurlong.org/wezterm/install/source.html

jhheider added a commit that referenced this pull request Sep 27, 2024
@jhheider jhheider mentioned this pull request Sep 27, 2024
jhheider added a commit that referenced this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants