From ba6ac05f5b1fe01c532117457250cd540c33f1eb Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Tue, 25 Jul 2023 11:20:45 -0700 Subject: [PATCH 1/2] `tmux`: add the tmux package to Wolfi. This is imported via `melange convert apkbuild` and then heavily modified to add dependencies Jamon and Ariadne thankfully pointed out were missing. I built an image with a local build of the package and poked around with it inside of a Google Cloud Shell and things seemed to work :party-matt: Signed-off-by: Matt Moore --- tmux.yaml | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 tmux.yaml diff --git a/tmux.yaml b/tmux.yaml new file mode 100644 index 000000000000..cb305efcb230 --- /dev/null +++ b/tmux.yaml @@ -0,0 +1,71 @@ +# Generated from https://git.alpinelinux.org/aports/plain/main/tmux/APKBUILD +package: + name: tmux + version: 3.3a + epoch: 0 + description: Tool to control multiple terminals from a single terminal + copyright: + - license: ISC + +environment: + contents: + packages: + - autoconf + - automake + - bash + - bison + - build-base + - busybox + - ca-certificates-bundle + - glibc-dev + - icu + - libevent + - libevent-dev + - libtool + - m4 + - pcre-dev + - pcre2-dev + - pkgconf + - pkgconf-dev + - posix-libc-utils + - wolfi-base + - yaml-dev + - zlib-dev + +pipeline: + - uses: fetch + with: + uri: https://github.com/tmux/tmux/archive/refs/tags/${{package.version}}.tar.gz + expected-sha256: f9687493203f86d346791a9327cde9148b9b4be959381b1effc575a9364a043f + + - runs: ./autogen.sh + + - uses: autoconf/configure + with: + opts: | + --sysconfdir=/etc/ --prefix=/usr/ + + - uses: autoconf/make + + - uses: autoconf/make-install + + - runs: | + install -D -m644 example_tmux.conf \ + "${{targets.destdir}}"/usr/share/doc/tmux/examples/tmux.conf + + for file in CHANGES README; do + install -m644 "$file" "${{targets.destdir}}"/usr/share/doc/tmux/ + done + + - uses: strip + +subpackages: + - name: tmux-doc + pipeline: + - uses: split/manpages + description: tmux manpages + +update: + enabled: true + release-monitor: + identifier: 4980 From d059d3fe13b4b946d31b72a1e97bcb1b6d291cfa Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Tue, 25 Jul 2023 15:09:35 -0700 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Ariadne Conill Signed-off-by: Matt Moore --- tmux.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.yaml b/tmux.yaml index cb305efcb230..82d52d5aa954 100644 --- a/tmux.yaml +++ b/tmux.yaml @@ -1,4 +1,3 @@ -# Generated from https://git.alpinelinux.org/aports/plain/main/tmux/APKBUILD package: name: tmux version: 3.3a @@ -43,7 +42,8 @@ pipeline: - uses: autoconf/configure with: opts: | - --sysconfdir=/etc/ --prefix=/usr/ + --sysconfdir=/etc \ + --prefix=/usr - uses: autoconf/make