mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Fix elementary-sideload + cleanup elementary-calculator
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "elementary-sideload.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
@@ -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}')
|
||||
@@ -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 <lleyton@fyralabs.com>
|
||||
- Repackaged for Terra
|
||||
Reference in New Issue
Block a user