[arch-commits] Commit in quodlibet/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Sun May 23 18:38:24 UTC 2021
Date: Sunday, May 23, 2021 @ 18:38:23
Author: bgyorgy
Revision: 943514
upgpkg: quodlibet 4.4.0-2: Move audio backends to optdepends, remove separated exfalso package (FS#70786)
Modified:
quodlibet/trunk/PKGBUILD
----------+
PKGBUILD | 117 ++++++++++++++-----------------------------------------------
1 file changed, 28 insertions(+), 89 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-23 17:08:17 UTC (rev 943513)
+++ PKGBUILD 2021-05-23 18:38:23 UTC (rev 943514)
@@ -2,118 +2,57 @@
# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Eric Bélanger <eric at archlinux.org>
-pkgbase=quodlibet
-pkgname=(quodlibet exfalso)
+pkgname=quodlibet
pkgver=4.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="Music player and music library manager"
arch=(any)
url="https://quodlibet.readthedocs.io/"
license=(GPL2)
-depends=(gtk3 python-mutagen python-gobject python-cairo python-feedparser)
-makedepends=(gst-plugins-base gst-plugins-bad gst-plugins-good gst-plugins-ugly
- python-sphinx_rtd_theme xine-lib)
+depends=(dbus-python gtk3 python-cairo python-feedparser python-gobject python-mutagen)
+makedepends=(python-sphinx_rtd_theme)
# python-raven python-senf are currently vendored
-checkdepends=(python-pytest python-xvfbwrapper)
-source=("https://github.com/${pkgbase}/${pkgbase}/releases/download/release-${pkgver}/${pkgbase}-${pkgver}.tar.gz"{,.sig})
+checkdepends=(gst-plugins-base gst-plugins-good python-pytest python-xvfbwrapper)
+optdepends=('gst-libav: Extra media codecs for the GStreamer backend'
+ 'gst-plugins-bad: Extra media codecs for the GStreamer backend; Audio Pitch / Speed, Crossfeed, Submit Acoustic Fingerprints plugins'
+ 'gst-plugins-base: Default audio backend'
+ 'gst-plugins-good: Extra media codecs, PulseAudio support for the GStreamer backend; Audio Compressor, Karaoke, Replay Gain plugins'
+ 'gst-plugins-ugly: Extra media codecs for the GStreamer backend'
+ 'gtksourceview3: Undo and redo support in multiline text fields'
+ 'kakasi: Kana/Kanji Simple Inverter plugin'
+ 'libappindicator-gtk3: Appindicator support in the Tray Icon plugin'
+ 'libkeybinder3: Multimedia key support under non Gnome setups'
+ 'libmodplug: MOD support'
+ 'python-musicbrainzngs: MusicBrainz Lookup, MusicBrainz Sync plugins'
+ 'python-paho-mqtt: MQTT Publisher plugin'
+ 'python-pyinotify: Automatic Library Update plugin'
+ 'rygel: UPnP AV Media Server plugin'
+ 'webkit2gtk: Web Lyrics plugin'
+ 'xine-lib: Alternative audio backend')
+source=("https://github.com/${pkgname}/${pkgname}/releases/download/release-${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
sha256sums=(a03318d2767e4959551763d0a87fad977387af712608fe572714176a24bbf367 SKIP)
validpgpkeys=(0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC) # Christoph Reiter <reiter.christoph at gmail.com>
prepare() {
- cd ${pkgbase}-${pkgver}
+ cd ${pkgname}-${pkgver}
# Fix zsh completions dir
sed -e 's|vendor-completions|site-functions|' -i gdist/zsh_completions.py
}
build() {
- cd ${pkgbase}-${pkgver}
+ cd ${pkgname}-${pkgver}
python setup.py build
}
check() {
- cd ${pkgbase}-${pkgver}
+ cd ${pkgname}-${pkgver}
export PYTHONPATH="build:${PYTHONPATH}"
# not running useless linter checks
pytest -v -k 'not TFlake8'
}
-package_quodlibet() {
- depends+=(gst-plugins-base xine-lib)
-# python-raven python-senf are currently vendored
- optdepends=('gst-libav: WMA support'
- 'gst-plugins-bad: mp3, mp4 and opus support and acoustid plugin'
- 'gst-plugins-good: flac, jack and pulseaudio support and replaygain plugin'
- 'gst-plugins-ugly: alternative mp3 support'
- 'gtksourceview3: undo and redo support in multiline text fields'
- 'kakasi: Kana Kanji Simple Inverter plugin'
- 'libappindicator-gtk3: tray icon plugin'
- 'libkeybinder3: Multimedia keys support'
- 'libmodplug: MOD support'
- 'python-dbus: DBus interface, multimedia key support and several plugins'
- 'python-musicbrainzngs: musicbrainz plugin'
- 'python-pyinotify: auto library update plugin'
- 'rygel: uPnP media server'
- 'webkit2gtk: lyrics window plugin')
-
- cd ${pkgbase}-${pkgver}
+package() {
+ cd ${pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --skip-build --optimize=1
- install -Dm644 {README,NEWS}.rst -t "${pkgdir}"/usr/share/doc/${pkgbase}
+ install -Dm644 {README,NEWS}.rst -t "${pkgdir}"/usr/share/doc/${pkgname}
}
-
-package_exfalso() {
- optdepends=('gst-plugins-bad: for acoustid plugin'
- 'gst-plugins-good: for replaygain plugin'
- 'kakasi: for "Kana/Kanji Simple Inverter" plugin'
- 'python-dbus: for "Browse Folders" plugin'
- 'python-musicbrainzngs: for "MusicBrainz Lookup" plugin')
- conflicts=("${pkgbase}")
-
- cd ${pkgbase}-${pkgver}
- python setup.py install --root="${pkgdir}" --skip-build --optimize=1
-
- # Remove Quod Libet
- internal_name="io.github.${pkgbase}.QuodLibet"
- rm "${pkgdir}"/usr/bin/${pkgbase}
- rm "${pkgdir}"/usr/share/appdata/${internal_name}.appdata.xml
- rm "${pkgdir}"/usr/share/applications/${internal_name}.desktop
- rm "${pkgdir}"/usr/share/bash-completion/completions/${pkgbase}
- rm -r "${pkgdir}"/usr/share/dbus-1/
- rm -r "${pkgdir}"/usr/share/gnome-shell/
- for i in 16 24 32 48 64 128 256
- do
- rm "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/${internal_name}.png
- done
- rm "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/${internal_name}.svg
- rm "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/${internal_name}-symbolic.svg
- rm "${pkgdir}"/usr/share/man/man1/${pkgbase}.1
- rm -r "${pkgdir}"/usr/share/zsh/
-
- # Remove plugins
- site_packages="$(find ${pkgdir} -type d -name site-packages)"
-
- rm -r "${site_packages}"/${pkgbase}/plugins/listenbrainz
-
- for package in _shared covers events gstreamer playlist playorder query
- do
- rm -r "${site_packages}"/${pkgbase}/ext/${package}
- done
-
- find "${site_packages}"/${pkgbase}/ext/songsmenu \
- -type f \( \
- -name "bookmarks.*" \
- -o -name "duplicates.*" \
- -o -name "editplaycount.*" \
- -o -name "exact_rating.*"\
- -o -name "filterall.*" \
- -o -name "filterbrowser.*" \
- -o -name "forcewrite.*" \
- -o -name "html.*" \
- -o -name "ifp.*" \
- -o -name "importexport.*" \
- -o -name "k3b.*" \
- -o -name "lastfmsync.*" \
- -o -name "migratemetadata.*" \
- -o -name "playlist.*" \
- -o -name "refresh.*" \
- \) -delete
-}
More information about the arch-commits
mailing list