diff --git a/anda/system/polycrystal/anda.hcl b/anda/system/polycrystal/anda.hcl new file mode 100644 index 0000000000..fbac774bba --- /dev/null +++ b/anda/system/polycrystal/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "polycrystal.spec" + } +} \ No newline at end of file diff --git a/anda/system/polycrystal/polycrystal.spec b/anda/system/polycrystal/polycrystal.spec new file mode 100644 index 0000000000..536002f422 --- /dev/null +++ b/anda/system/polycrystal/polycrystal.spec @@ -0,0 +1,49 @@ +Name: polycrystal +Version: 0.2.0 +Release: 1%?dist +Summary: Barebones "automatic" Flatpak installer for distribution-default Flatpak packages. +URL: https://github.com/Ultramarine-Linux/polycrystal +Source0: %url/archive/refs/tags/v%version.tar.gz +License: GPL +BuildRequires: cargo cmake anda-srpm-macros cargo-rpm-macros systemd-rpm-macros mold glib2-devel flatpak-devel +Packager: Owen Zimmerman + +%description +%summary + +%prep +%autosetup -n polycrystal-%version +%cargo_prep_online + +%build +%cargo_build + +%install +mkdir -p %{buildroot}%{_datadir}/polycrystal %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/polycrystal/entries %{buildroot}%{_sharedstatedir}/polycrystal +%cargo_install +install -Dm644 polycrystal.service %{buildroot}%{_unitdir}/polycrystal.service + +%post +%systemd_post polycrystal.service + +%preun +%systemd_preun polycrystal.service + +%postun +%systemd_postun_with_restart polycrystal.service + +%files +%{_bindir}/polycrystal +%{_datadir}/polycrystal/ +%{_unitdir}/polycrystal.service +%dir %{_sysconfdir}/polycrystal +%dir %{_sysconfdir}/polycrystal/entries +%dir %{_sharedstatedir}/polycrystal +%license LICENSE +%doc README.md + +%changelog +* Tue Nov 19 2024 Owen-sz +- Switch from commit based to release based, and add systemd services +* Fri Nov 15 2024 Owen-sz +- Package Polycrystal \ No newline at end of file diff --git a/anda/system/polycrystal/update.rhai b/anda/system/polycrystal/update.rhai new file mode 100644 index 0000000000..e9ccc09743 --- /dev/null +++ b/anda/system/polycrystal/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("Ultramarine-Linux/polycrystal")); \ No newline at end of file