summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalló György2020-07-23 13:19:49 +0000
committerBalló György2020-07-23 13:19:49 +0000
commitfb863504dde5e9625a962b763022afb34794f638 (patch)
tree290d045901410cf0e26edbddcd6c222cbd855402
downloadaur-lyrics.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD29
-rw-r--r--fix-build.patch25
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ef08f6840eb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = lyrics
+ pkgdesc = Display lyrics on media players with MPRIS-2 interface
+ pkgver = 0.8.1
+ pkgrel = 1
+ url = https://github.com/naaando/lyrics
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = meson
+ makedepends = vala
+ depends = gtk3
+ depends = libgee
+ depends = libxmlbird
+ depends = lyricsources
+ source = https://github.com/naaando/lyrics/archive/0.8.1/lyrics-0.8.1.tar.gz
+ source = fix-build.patch
+ sha256sums = 6a990f7127e684fabb0032cbb7d5ff66155f622e979b106d6ba03ffd2fc84a74
+ sha256sums = 239baeecf76facae33065d02e6d088056f50017612b27c6bdb12a1b8738e0c87
+
+pkgname = lyrics
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fa63e6ba0ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=lyrics
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="Display lyrics on media players with MPRIS-2 interface"
+arch=(x86_64)
+url="https://github.com/naaando/lyrics"
+license=(GPL3)
+depends=(gtk3 libgee libxmlbird lyricsources)
+makedepends=(git meson vala)
+source=(https://github.com/naaando/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz
+ fix-build.patch)
+sha256sums=('6a990f7127e684fabb0032cbb7d5ff66155f622e979b106d6ba03ffd2fc84a74'
+ '239baeecf76facae33065d02e6d088056f50017612b27c6bdb12a1b8738e0c87')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../fix-build.patch
+}
+
+build() {
+ arch-meson $pkgname-$pkgver build
+ meson compile -C build
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C build
+}
diff --git a/fix-build.patch b/fix-build.patch
new file mode 100644
index 00000000000..8aa2f0d7243
--- /dev/null
+++ b/fix-build.patch
@@ -0,0 +1,25 @@
+From 7ef2ca102a699f497f6b06b5b2562f7cf8e04a56 Mon Sep 17 00:00:00 2001
+From: Fernando da Silva Sousa <wild.nando@gmail.com>
+Date: Wed, 11 Dec 2019 12:46:22 -0300
+Subject: [PATCH] Fix state enum values comparison on mainStack
+
+---
+ src/View/MainStack.vala | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/View/MainStack.vala b/src/View/MainStack.vala
+index 1a3280e..f2e7a7f 100644
+--- a/src/View/MainStack.vala
++++ b/src/View/MainStack.vala
+@@ -45,8 +45,8 @@ public class Lyrics.MainStack : Gtk.Stack {
+ public void on_lyric_service_change () {
+ var state = display_view.lyrics_service.state;
+
+- if (state == Lyrics.LyricsService.DOWNLOADING) { visible_child_name = "DOWNLOADING"; }
+- if (state == Lyrics.LyricsService.LYRICS_NOT_FOUND) { visible_child_name = "NO_LYRICS"; }
+- if (state == Lyrics.LyricsService.DOWNLOADED) { visible_child_name = "DISPLAYING"; }
++ if (state == Lyrics.LyricsService.State.DOWNLOADING) { visible_child_name = "DOWNLOADING"; }
++ if (state == Lyrics.LyricsService.State.LYRICS_NOT_FOUND) { visible_child_name = "NO_LYRICS"; }
++ if (state == Lyrics.LyricsService.State.DOWNLOADED) { visible_child_name = "DISPLAYING"; }
+ }
+ }