[arch-commits] Commit in playitslowly/repos (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 23:30:45 UTC 2021
Date: Thursday, December 2, 2021 @ 23:30:45
Author: felixonmars
Revision: 1063073
archrelease: copy trunk to community-staging-any
Added:
playitslowly/repos/community-staging-any/
playitslowly/repos/community-staging-any/PKGBUILD
(from rev 1063072, playitslowly/trunk/PKGBUILD)
playitslowly/repos/community-staging-any/gtk-version.patch
(from rev 1063072, playitslowly/trunk/gtk-version.patch)
playitslowly/repos/community-staging-any/playitslowly.appdata.xml
(from rev 1063072, playitslowly/trunk/playitslowly.appdata.xml)
--------------------------+
PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++++++++
gtk-version.patch | 24 ++++++++++++++++++++++
playitslowly.appdata.xml | 22 ++++++++++++++++++++
3 files changed, 94 insertions(+)
Copied: playitslowly/repos/community-staging-any/PKGBUILD (from rev 1063072, playitslowly/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:30:45 UTC (rev 1063073)
@@ -0,0 +1,48 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: mrxx <mrxx at cyberhome dot at>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+# Contributor: sausageandeggs <sausageandeggs at archlinux.us>
+
+pkgname=playitslowly
+pkgver=1.5.1
+pkgrel=9
+pkgdesc='Play back audio files at a different speed or pitch'
+arch=('any')
+url='https://29a.ch/playitslowly'
+license=('GPL3')
+depends=('gst-plugins-bad' 'gst-plugins-base' 'gst-plugins-good' 'gst-python' 'gtk3'
+ 'python-gobject')
+optdepends=('gst-plugins-ugly: Extra media codecs'
+ 'gst-libav: Extra media codecs')
+source=("http://29a.ch/$pkgname/$pkgname-$pkgver.tar.gz"
+ 'gtk-version.patch'
+ 'playitslowly.appdata.xml')
+sha256sums=('7dfe3da5417971183a13002d1e4ba4f30770baaf1ae3f9ef0ac66a6727f476aa'
+ '397b430ad7bc16c606e466d53000c5c4ac57ee0b5390ddd8276bf46dbc17dd26'
+ 'ebe2890f7e42dfb7988d4304a4faee6d5657556f12bcebcd3279e9de86ec1ae4')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Specify required GTK version
+ patch -Np1 -i ../gtk-version.patch
+
+ # Move files to their right places
+ mkdir -p share/icons/hicolor/{32x32,128x128,scalable}/apps share/metainfo
+ mv share/pixmaps/playitslowly.png share/icons/hicolor/128x128/apps/playitslowly.png
+ mv share/icons/hicolor/32x32/playitslowly.png share/icons/hicolor/32x32/apps/playitslowly.png
+ mv share/icons/hicolor/scalable/playitslowly.svg \
+ share/icons/hicolor/scalable/apps/playitslowly.svg
+ cp ../playitslowly.appdata.xml share/metainfo/playitslowly.appdata.xml
+ rm -r share/pixmaps
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
Copied: playitslowly/repos/community-staging-any/gtk-version.patch (from rev 1063072, playitslowly/trunk/gtk-version.patch)
===================================================================
--- community-staging-any/gtk-version.patch (rev 0)
+++ community-staging-any/gtk-version.patch 2021-12-02 23:30:45 UTC (rev 1063073)
@@ -0,0 +1,24 @@
+From be3acf296a230b13cf27409d6f313c810277897e Mon Sep 17 00:00:00 2001
+From: sylvain <sylv1pdt at gmail.com>
+Date: Fri, 12 Mar 2021 22:34:44 +0100
+Subject: [PATCH] Force Gtk version 3.0
+
+Import fails when using gtk4: AttributeError: 'gi.repository.Gtk'
+object has no attribute 'Container'
+https://gitlab.gnome.org/GNOME/pygobject/-/issues/423
+---
+ playitslowly/app.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/playitslowly/app.py b/playitslowly/app.py
+index 32ad43b..9dbcbc2 100755
+--- a/playitslowly/app.py
++++ b/playitslowly/app.py
+@@ -32,6 +32,7 @@
+
+ import gi
+ gi.require_version('Gst', '1.0')
++gi.require_version('Gtk', '3.0')
+
+ from gi.repository import Gtk, GObject, Gst, Gio, Gdk
+
Copied: playitslowly/repos/community-staging-any/playitslowly.appdata.xml (from rev 1063072, playitslowly/trunk/playitslowly.appdata.xml)
===================================================================
--- community-staging-any/playitslowly.appdata.xml (rev 0)
+++ community-staging-any/playitslowly.appdata.xml 2021-12-02 23:30:45 UTC (rev 1063073)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">ch.x29a.playitslowly</id>
+ <launchable type="desktop-id">playitslowly.desktop</launchable>
+ <provides>
+ <id>playitslowly.desktop</id>
+ </provides>
+ <name>Play it Slowly</name>
+ <summary>Play music at a different speed</summary>
+ <description>
+ <p>
+ Play music at a different speed or pitch.
+ </p>
+ </description>
+ <url type="homepage">https://29a.ch/playitslowly/</url>
+ <content_rating type="oars-1.1" />
+ <screenshots>
+ <screenshot type="default">https://29a.ch/playitslowly/screenshot.png</screenshot>
+ </screenshots>
+ <project_license>GPL-3.0+</project_license>
+ <metadata_license>CC0-1.0</metadata_license>
+</application>
More information about the arch-commits
mailing list