mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Add: Polycrystal (#2498)
* Add: Polycrystal * switch from commit based to release based * WIP - add systemd macros and potential preset file calling * install service file * Forgot to put the preset file in the files section * update changelog * add config and data dirs * enable systemd scriptlets * create empty dirs * fix changelog and update version * add buildroot prefixes * remove config line --------- Co-authored-by: madomado <madonuko@outlook.com> Co-authored-by: lea <lleyton@fyralabs.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "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 <owen@fyralabs.com>
|
||||
|
||||
%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 <owen@fyralabs.com>
|
||||
- Switch from commit based to release based, and add systemd services
|
||||
* Fri Nov 15 2024 Owen-sz <owen@fyralabs.com>
|
||||
- Package Polycrystal
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("Ultramarine-Linux/polycrystal"));
|
||||
Reference in New Issue
Block a user