diff --git a/anda/desktops/elementary/elementary-calculator/elementary-calculator.spec b/anda/desktops/elementary/elementary-calculator/elementary-calculator.spec index 6a10134bd6..6b62ab7d8a 100644 --- a/anda/desktops/elementary/elementary-calculator/elementary-calculator.spec +++ b/anda/desktops/elementary/elementary-calculator/elementary-calculator.spec @@ -17,8 +17,6 @@ BuildRequires: meson >= 0.49 BuildRequires: vala BuildRequires: pkgconfig(granite-7) >= 7.0.0 -BuildRequires: pkgconfig(gtk+-3.0) >= 3.11.6 -BuildRequires: pkgconfig(libhandy-1) >= 0.91.0 BuildRequires: pkgconfig(gtk4) Requires: hicolor-icon-theme diff --git a/anda/desktops/elementary/elementary-sideload/anda.hcl b/anda/desktops/elementary/elementary-sideload/anda.hcl new file mode 100644 index 0000000000..71364a6647 --- /dev/null +++ b/anda/desktops/elementary/elementary-sideload/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "elementary-sideload.spec" + sources = "." + } +} diff --git a/anda/desktops/elementary/elementary-sideload/chkupdate.py b/anda/desktops/elementary/elementary-sideload/chkupdate.py new file mode 100644 index 0000000000..f272208fa1 --- /dev/null +++ b/anda/desktops/elementary/elementary-sideload/chkupdate.py @@ -0,0 +1,19 @@ +import os +import requests +import re + +NAME = 'elementary-sideload' +REPO = "elementary/sideload" +REGEX_VER = r'Version:\s*([\.\d]+)\n' +SPEC = f"{NAME}.spec" +LINK = f'https://api.github.com/repos/{REPO}/releases/latest' + + +ver = requests.get(LINK).json()['tag_name'] +with open(SPEC, 'r') as f: + matches = re.findall(REGEX_VER, f.read()) +if not len(matches): exit(f"{NAME}: Failed to match regex!") +cur = matches[0] +if ver == cur: exit(f'{NAME}: Up to date!') +print(f'{NAME}: {cur} -> {ver}') +os.system(f'rpmdev-bumpspec -n {ver} {SPEC}') diff --git a/anda/desktops/elementary/elementary-sideload/elementary-sideload.spec b/anda/desktops/elementary/elementary-sideload/elementary-sideload.spec new file mode 100644 index 0000000000..6cd235db03 --- /dev/null +++ b/anda/desktops/elementary/elementary-sideload/elementary-sideload.spec @@ -0,0 +1,68 @@ +%global srcname sideload +%global appname io.elementary.sideload + +Name: elementary-sideload +Summary: Sideload flatpaks on Pantheon +Version: 6.1.0 +Release: %autorelease +License: GPLv3+ + +URL: https://github.com/elementary/sideload +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: meson +BuildRequires: vala + +BuildRequires: pkgconfig(flatpak) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(granite-7) >= 7.0.0 +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(libxml-2.0) + +Requires: hicolor-icon-theme + +%description +Sideload is a simple application that lets users install flatpaks on +Pantheon without needing to use a command line application. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + + +%build +%meson +%meson_build + +%install +%meson_install +%find_lang %{appname} + + +%check +desktop-file-validate \ + %{buildroot}/%{_datadir}/applications/%{appname}.desktop + +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml + + +%files -f %{appname}.lang +%license LICENSE +%doc README.md + +%{_bindir}/%{appname} + +%{_datadir}/applications/%{appname}.desktop +%{_datadir}/icons/hicolor/*/apps/%{appname}.svg +%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml +%{_datadir}/metainfo/%{appname}.appdata.xml + + +%changelog +* Tue Nov 22 2022 Lleyton Gray +- Repackaged for Terra