%global commit cdca637ba63e8a56bda47fe90e55409d3344120d
%global date 20260520
%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 <metcya@gmail.com>

%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 <metcya@gmail.com>
- Package activate-linux
