diff --git a/.gitea/workflows/build-hyprshutdown.yml b/.gitea/workflows/build-hyprshutdown.yml new file mode 100644 index 0000000..ed14200 --- /dev/null +++ b/.gitea/workflows/build-hyprshutdown.yml @@ -0,0 +1,32 @@ +name: Build hyprshutdown +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprshutdown.yml + - "hyprshutdown.spec" + workflow_dispatch: + +jobs: + build_push: + name: Build and push image + runs-on: ubuntu-latest + + steps: + - name: Setup environment + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y podman iptables + + # These stage versions are pinned by https://github.com/renovatebot/renovate + - name: Checkout + uses: actions/checkout@v6 # v5 + + - name: Build RPM and Upload + uses: https://git.hydrosaber.com/hydros/build-rpm@main + with: + spec-file-path: ./hyprshutdown.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprshutdown.spec b/hyprshutdown.spec new file mode 100644 index 0000000..ff7474b --- /dev/null +++ b/hyprshutdown.spec @@ -0,0 +1,41 @@ +Name: hyprshutdown +Version: 0.1.0 +Release: %autorelease +Summary: A graceful shutdown utility for Hyprland + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprshutdown +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: glaze-static + +BuildRequires: pkgconfig(hyprtoolkit) +BuildRequires: pkgconfig(hyprutils) >= 0.11.0 +BuildRequires: pkgconfig(pixman-1) +BuildRequires: pkgconfig(libdrm) + +%description +%{summary}. + +%prep +%autosetup -p1 + +%build +%cmake -DCMAKE_BUILD_TYPE=Release +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_bindir}/hyprshutdown + +%changelog +%autochangelog