initial import
This commit is contained in:
33
pitivi/PKGBUILD
Normal file
33
pitivi/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=pitivi
|
||||
pkgver=2022.06
|
||||
pkgrel=1
|
||||
pkgdesc="Free and libre editor for audio / video projects using the multimedia graph framework"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://pitivi.org/'
|
||||
license=('LGPL-2.1')
|
||||
depends=('gst-editing-services' 'gst-plugin-gtk' 'gst-plugins-bad' 'gst-plugins-good' 'gst-python'
|
||||
'gtk' 'python-pycairo' 'python-pygobject' 'python-matplotlib' 'python-numpy')
|
||||
makedepends=('intltool' 'itstool' 'meson' 'quilt')
|
||||
optdepends=('gst-libav: additional multimedia codecs'
|
||||
'gst-plugins-ugly: additional multimedia codecs')
|
||||
source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
|
||||
"remove-warning-soft-deps.patch")
|
||||
sha512sums=('649c8e61d9545cbf35a0a0c8f648490c14c8bfb6c6637794887c03bffd6998c63cb2cc22102cd2f7a59974f79488a13f29beceadab29ddd1c1c01abff33a85fa'
|
||||
'87be36c0ed0048848a8522c033f9154cbf7941fcd6e41671483eee8cc77fab3be08d2834c789482745ab56489d721264200b2f8217fb8dc10655af88fa1f667e')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
patch -Np1 -i "$srcdir"/remove-warning-soft-deps.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
hyperbola-meson $pkgname-$pkgver build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" meson install -C build
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
84
pitivi/remove-warning-soft-deps.patch
Normal file
84
pitivi/remove-warning-soft-deps.patch
Normal file
@@ -0,0 +1,84 @@
|
||||
--- a/pitivi/greeterperspective.py 2022-06-25 01:30:31.000000000 +0200
|
||||
+++ b/pitivi/greeterperspective.py 2024-10-31 01:15:29.520315368 +0100
|
||||
@@ -108,7 +108,6 @@
|
||||
self.__cancel_button = None
|
||||
self.__new_project_button = None
|
||||
self.__open_project_button = None
|
||||
- self.__warnings_button = None
|
||||
|
||||
# Projects selected for removal.
|
||||
self.__selected_projects = []
|
||||
@@ -241,10 +240,6 @@
|
||||
self.__cancel_button = Gtk.Button.new_with_label(_("Cancel"))
|
||||
self.__cancel_button.connect("clicked", self.__cancel_clicked_cb)
|
||||
|
||||
- self.__warnings_button = Gtk.MenuButton.new()
|
||||
- self.__warnings_button.props.image = Gtk.Image.new_from_icon_name("warning-symbolic", Gtk.IconSize.BUTTON)
|
||||
- self.__warnings_button.set_popover(self.__create_warnings_popover())
|
||||
-
|
||||
self.menu_button = self.__create_menu()
|
||||
|
||||
headerbar.pack_start(self.__new_project_button)
|
||||
@@ -252,7 +247,6 @@
|
||||
headerbar.pack_end(self.menu_button)
|
||||
headerbar.pack_end(self.__selection_button)
|
||||
headerbar.pack_end(self.__cancel_button)
|
||||
- headerbar.pack_end(self.__warnings_button)
|
||||
headerbar.show()
|
||||
|
||||
return headerbar
|
||||
@@ -265,7 +259,6 @@
|
||||
self.__selection_button.set_visible(projects)
|
||||
self.menu_button.set_visible(welcome or projects)
|
||||
self.headerbar.set_show_close_button(welcome or projects)
|
||||
- self.__warnings_button.set_visible((welcome or projects) and MISSING_SOFT_DEPS)
|
||||
|
||||
if selection:
|
||||
self.headerbar.get_style_context().add_class("selection-mode")
|
||||
@@ -433,46 +426,3 @@
|
||||
for project in self.__selected_projects:
|
||||
self.app.recent_manager.remove_item(project.uri)
|
||||
self.refresh()
|
||||
-
|
||||
- def __create_warnings_popover(self):
|
||||
- """Creates a popover listing missing soft dependencies."""
|
||||
- popover = Gtk.Popover()
|
||||
- box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, margin=PADDING * 3)
|
||||
-
|
||||
- label = Gtk.Label(_("To enable additional features, please install the following packages and restart Pitivi:"))
|
||||
- label.props.halign = Gtk.Align.START
|
||||
- label.props.wrap = True
|
||||
- label.props.xalign = 0
|
||||
- box.pack_start(label, False, False, 0)
|
||||
-
|
||||
- grid = Gtk.Grid()
|
||||
- grid.props.row_spacing = SPACING
|
||||
- grid.props.column_spacing = PADDING
|
||||
- grid.props.margin_start = SPACING
|
||||
- grid.props.margin_top = SPACING * 2
|
||||
-
|
||||
- for row_index, dep in enumerate(MISSING_SOFT_DEPS.values()):
|
||||
- name_label = Gtk.Label(dep.modulename)
|
||||
- name_label.props.selectable = True
|
||||
- name_label.props.can_focus = False
|
||||
- name_label.props.xalign = 0
|
||||
- name_label.props.valign = Gtk.Align.START
|
||||
- grid.attach(name_label, 0, row_index, 1, 1)
|
||||
-
|
||||
- mdash_label = Gtk.Label("―")
|
||||
- mdash_label.props.xalign = 0
|
||||
- mdash_label.props.valign = Gtk.Align.START
|
||||
- grid.attach(mdash_label, 1, row_index, 1, 1)
|
||||
-
|
||||
- description_label = Gtk.Label(dep.additional_message)
|
||||
- description_label.props.wrap = True
|
||||
- description_label.props.xalign = 0
|
||||
- description_label.props.yalign = Gtk.Align.START
|
||||
- grid.attach(description_label, 2, row_index, 1, 1)
|
||||
-
|
||||
- box.pack_start(grid, False, False, 0)
|
||||
-
|
||||
- wrapper_bin = BinWithNaturalWidth(box, width=500)
|
||||
- wrapper_bin.show_all()
|
||||
- popover.add(wrapper_bin)
|
||||
- return popover
|
||||
Reference in New Issue
Block a user