mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-17 00:50:40 +00:00
Add rnote
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "poppler.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "rnote.spec"
|
||||
sources = "."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'rnote'
|
||||
REPO = "flxzt/rnote"
|
||||
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']
|
||||
ver = ver[1:] # starts with v
|
||||
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,48 @@
|
||||
Name: rnote
|
||||
Version: 0.5.7
|
||||
Release: %autorelease
|
||||
Summary: Sketch and take handwritten notes.
|
||||
License: GPLv3
|
||||
URL: https://github.com/flxzt/rnote
|
||||
Source0: %{url}/releases/download/v%{version}/rnote-%{version}.tar.xz
|
||||
Requires: libadwaita poppler-glib glib2-devel pkgconfig(gtk4)
|
||||
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(gtk4) >= 4.7
|
||||
BuildRequires: pkgconfig(libadwaita-1) >= 1.2
|
||||
BuildRequires: pkgconfig(poppler-glib) >= 22.09
|
||||
|
||||
%description
|
||||
Rnote is an open-source vector-based drawing app for sketching, handwritten notes and to annotate documents and pictures. Targeted at students, teachers and those who own a drawing tablet, it provides features like PDF and picture import and export, an infinite canvas and an adaptive UI for big and small screens.
|
||||
|
||||
%prep
|
||||
%autosetup -n rnote-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
/usr/bin/rnote
|
||||
/usr/lib/debug/usr/bin/rnote-0.5.7-1.fc37.x86_64.debug
|
||||
/usr/share/applications/com.github.flxzt.rnote.desktop
|
||||
/usr/share/glib-2.0/schemas/com.github.flxzt.rnote.gschema.xml
|
||||
/usr/share/icons/hicolor/scalable/apps/com.github.flxzt.rnote.svg
|
||||
/usr/share/icons/hicolor/symbolic/apps/com.github.flxzt.rnote-symbolic.svg
|
||||
/usr/share/locale/*/LC_MESSAGES/rnote.mo
|
||||
/usr/share/metainfo/com.github.flxzt.rnote.metainfo.xml
|
||||
/usr/share/mime/packages/com.github.flxzt.rnote.xml
|
||||
/usr/share/rnote/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Oct 23 2022 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
- Initial package
|
||||
Reference in New Issue
Block a user