From edc6bdfc11a9098afa548b9678be332e8346be44 Mon Sep 17 00:00:00 2001 From: Jaiden Riordan Date: Wed, 18 Dec 2024 11:41:46 -0600 Subject: [PATCH] add: ctwm (attempt 2) (#1400) * feat: ctwm * per mado suggestion * wrong month * Update anda/desktops/ctwm/ctwm.spec Co-authored-by: madomado Signed-off-by: Jaiden Riordan * Update anda/desktops/ctwm/ctwm.spec Co-authored-by: madomado Signed-off-by: Jaiden Riordan * fix ctwm * Add myself in changelog Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * %description grammer lol Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Jaiden Riordan Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: madomado Co-authored-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> (cherry picked from commit 1ed10048d4a28d0517981d553758b98b432146ef) --- anda/desktops/ctwm/anda.hcl | 5 +++ anda/desktops/ctwm/ctwm.desktop | 7 +++++ anda/desktops/ctwm/ctwm.spec | 55 +++++++++++++++++++++++++++++++++ anda/desktops/ctwm/update.rhai | 1 + 4 files changed, 68 insertions(+) create mode 100644 anda/desktops/ctwm/anda.hcl create mode 100644 anda/desktops/ctwm/ctwm.desktop create mode 100644 anda/desktops/ctwm/ctwm.spec create mode 100644 anda/desktops/ctwm/update.rhai diff --git a/anda/desktops/ctwm/anda.hcl b/anda/desktops/ctwm/anda.hcl new file mode 100644 index 0000000000..8ab55e93bf --- /dev/null +++ b/anda/desktops/ctwm/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "ctwm.spec" + } +} \ No newline at end of file diff --git a/anda/desktops/ctwm/ctwm.desktop b/anda/desktops/ctwm/ctwm.desktop new file mode 100644 index 0000000000..2d255d41cc --- /dev/null +++ b/anda/desktops/ctwm/ctwm.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=CTWM +Comment=Claude's Tab Window Manager +TryExec=ctwm +Exec=ctwm +Type=Xsession +Encoding=UTF-8 \ No newline at end of file diff --git a/anda/desktops/ctwm/ctwm.spec b/anda/desktops/ctwm/ctwm.spec new file mode 100644 index 0000000000..1a1447bcda --- /dev/null +++ b/anda/desktops/ctwm/ctwm.spec @@ -0,0 +1,55 @@ +Summary: Lightweight window manager with virtual workspaces +Name: ctwm +Version: 4.1.0 +Release: 1%?dist +URL: https://ctwm.org +BuildRequires: libjpeg-turbo-devel libX11-devel libXext-devel libXmu-devel libXpm-devel libXt-devel libXrandr-devel cmake gcc m4 +Source0: https://www.ctwm.org/dist/%{name}-%{version}.tar.xz +Source1: %{name}.desktop +License: MIT +Requires: m4 +# Derived from RPMSphere's packaging + +%description +CTWM is a window manager based on TWM (with virtual workspaces added). + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +%cmake_install +%{__install} -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/xsessions/%{name}.desktop + +%files +%doc README.md CHANGES.md +%license COPYRIGHT +%{_bindir}/%{name} +%{_mandir}/man1/%{name}* +%{_datadir}/xsessions/%{name}.desktop +%{_datadir}/ctwm +%{_datadir}/doc/ctwm/ctwm.1.html +%{_datadir}/examples/ctwm/system.ctwmrc + +%changelog +* Tue Dec 17 2024 Owen Zimmerman +- Add .desktop and .rhai file, fix dependancies, and switch to .tar.xz source (smaller download) +* Thu Jun 27 2024 Jaiden Riordan - 4.1.0 +- Rewrite for Terra, Thanks RPMSphere +* Tue Dec 24 2019 Wei-Lun Chao - 4.0.3 +- Rebuilt for Fedora +* Sat Apr 9 2011 Agnelo de la Crotche +- package for openSUSE 11.3/11.4 +* Thu Feb 16 2006 Richard Levitte +- Release ctwm 3.8a. +* Wed May 4 2005 Rudolph T Maceyko +- Tweaks. Added all .ctwmrc files as well as sound and VMS docs. +* Wed May 4 2005 Richard Levitte +- Changed some directory specifications to RedHat-ish standards. +* Tue May 3 2005 Richard Levitte +- Received the original from Johan Vromans. Adjusted it to become + an official .spec file. + diff --git a/anda/desktops/ctwm/update.rhai b/anda/desktops/ctwm/update.rhai new file mode 100644 index 0000000000..8be0617bc4 --- /dev/null +++ b/anda/desktops/ctwm/update.rhai @@ -0,0 +1 @@ +rpm.version(find("

Current release: ([\\d.]+)

", get("https://www.ctwm.org/download.html"), 1)); \ No newline at end of file