From 858cd97165a6891c3285091d97b2ffc51ed0f7f6 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 3 Nov 2025 01:29:08 -0800 Subject: [PATCH] add: activate-linux (#7048) (#7050) * Add activate-linux * add update.rhai for activate-linux * oops (cherry picked from commit c113463f7cdce1b788b851d3f0fb0f2f83ea8994) Co-authored-by: metcya <134973769+metcya@users.noreply.github.com> --- anda/misc/activate-linux/activate-linux.spec | 52 ++++++++++++++++++++ anda/misc/activate-linux/anda.hcl | 5 ++ anda/misc/activate-linux/update.rhai | 8 +++ 3 files changed, 65 insertions(+) create mode 100644 anda/misc/activate-linux/activate-linux.spec create mode 100644 anda/misc/activate-linux/anda.hcl create mode 100644 anda/misc/activate-linux/update.rhai diff --git a/anda/misc/activate-linux/activate-linux.spec b/anda/misc/activate-linux/activate-linux.spec new file mode 100644 index 0000000000..0cd2991db3 --- /dev/null +++ b/anda/misc/activate-linux/activate-linux.spec @@ -0,0 +1,52 @@ +%global commit d55b639e251cf921541be11e0c32530b0364f7bb +%global date 20251019 +%global short %(c=%{commit}; echo ${c:0:7}) +%global ver 1.1.0 + +Name: activate-linux +Summary: The "Activate Windows" watermark ported to Linux +Version: %{ver}^%{date}git.%{short} +License: GPL-3.0-only +Release: 1%?dist +URL: https://github.com/MrGlockenspiel/activate-linux +Source0: %{url}/archive/%{commit}.tar.gz +BuildRequires: clang +BuildRequires: pkgconfig(pango) +BuildRequires: libconfig-devel +BuildRequires: libXinerama-devel +BuildRequires: libXext-devel +BuildRequires: libXt-devel +BuildRequires: libXrandr-devel +BuildRequires: libX11-devel +BuildRequires: libXi-devel +BuildRequires: wayland-devel +BuildRequires: wayland-protocols-devel +Packager: Metcya + +%description +The "Activate Windows" watermark ported to Linux with Xlib and cairo in C + +"Science isn't about WHY. It's about WHY NOT. Why is so much of our science dangerous? Why not marry safe science if you love it so much. In fact, why not invent a special safety door that won't hit you on the butt on the way out, because you are fired." + +Maintained by MrGlockenspiel. + +%prep +%autosetup -n activate-linux-%{commit} + +%build +%make_build + +%install +# ewwww +export PREFIX="" +export BINDIR=%{_bindir} +%make_install + +%files +%{_bindir}/activate-linux +%license LICENSE.md +%doc ARGS.md README.md + +%changelog +* Sun Nov 2 2025 Metcya +- Package activate-linux diff --git a/anda/misc/activate-linux/anda.hcl b/anda/misc/activate-linux/anda.hcl new file mode 100644 index 0000000000..d673aabd2c --- /dev/null +++ b/anda/misc/activate-linux/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "activate-linux.spec" + } +} diff --git a/anda/misc/activate-linux/update.rhai b/anda/misc/activate-linux/update.rhai new file mode 100644 index 0000000000..8020bc0c69 --- /dev/null +++ b/anda/misc/activate-linux/update.rhai @@ -0,0 +1,8 @@ +rpm.global("commit", gh_commit("MrGlockenspiel/activate-linux")); +if rpm.changed() { + rpm.release(); + rpm.global("date", date()); + let ver = gh_tag("MrGlockenspiel/activate-linux"); + ver.crop(1); + rpm.global("ver", ver); +}