summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-10-07 23:17:21 +0800
committermaz-12015-10-07 23:17:21 +0800
commit4aaeda47deaa51be94db8e42460ac3b3b8e55385 (patch)
treea38490c6fedfbd65247f7e0118ab718d25e67d70
downloadaur-deadbeef-lyrics-hg.tar.gz
initial
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD33
-rw-r--r--buildfix.diff44
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..24a7c6cef2d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = deadbeef-lyrics-hg
+ pkgdesc = Lyrics plugin for the DeaDBeeF music player
+ pkgver = 36
+ pkgrel = 1
+ url = https://bitbucket.org/trollixx/deadbeef-lyrics
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = deadbeef
+ source = hg+https://bitbucket.org/trollixx/deadbeef-lyrics
+ source = buildfix.diff
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = deadbeef-lyrics-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..30a015556f0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: maz-1 <ohmygod19993 at gmail dot com>
+pkgname=deadbeef-lyrics-hg
+_hgname=deadbeef-lyrics
+pkgver=36
+pkgrel=1
+pkgdesc="Lyrics plugin for the DeaDBeeF music player"
+arch=('i686' 'x86_64')
+url="https://bitbucket.org/trollixx/deadbeef-lyrics"
+license=('GPL2')
+depends=('deadbeef')
+source=('hg+https://bitbucket.org/trollixx/deadbeef-lyrics' 'buildfix.diff')
+md5sums=('SKIP' 'SKIP')
+
+pkgver() {
+ cd $srcdir/$_hgname
+ hg id -n
+}
+
+prepare() {
+ cd "$srcdir/$_hgname"
+ patch -p1 < ../buildfix.diff
+}
+
+build() {
+ cd "${srcdir}/$_hgname"
+ make
+}
+
+package() {
+ cd "${srcdir}/$_hgname"
+
+ install -Dm 755 ddb_lyrics.so "$pkgdir/usr/lib/deadbeef/ddb_lyrics.so"
+}
diff --git a/buildfix.diff b/buildfix.diff
new file mode 100644
index 00000000000..0ced1215dc7
--- /dev/null
+++ b/buildfix.diff
@@ -0,0 +1,44 @@
+diff -r 9b8def6626d0 Makefile
+--- a/Makefile Fri Jul 08 18:04:05 2011 +0300
++++ b/Makefile Mon Mar 03 20:16:19 2014 +0100
+@@ -1,12 +1,10 @@
+ PREFIX?=/usr
+
+ OUT=ddb_lyrics.so
+-INCLUDE="-I${PREFIX}/include"
+-GTK_INCLUDE?=`pkg-config --cflags gtk+-2.0`
+-GTK_LIBS?=`pkg-config --libs gtk+-2.0`
++GTK2_CFLAGS?=`pkg-config --cflags gtk+-2.0`
++GTK2_LIBS?=`pkg-config --libs gtk+-2.0`
+ CC?=gcc
+-CFLAGS+=-Wall -fPIC -D_GNU_SOURCE ${INCLUDE} ${GTK_INCLUDE}
+-LDFLAGS+=-shared ${GTK_LIBS}
++CFLAGS+=-Wall -fPIC
+
+ SOURCES=lyrics.c
+
+@@ -15,10 +12,10 @@
+ all: $(SOURCES) $(OUT)
+
+ $(OUT): $(OBJECTS)
+- $(CC) $(LDFLAGS) $(OBJECTS) -o $@
++ $(CC) $(CFLAGS) -shared $(OBJECTS) -o $@ $(GTK2_LIBS) $(LDFLAGS)
+
+ .c.o:
+- $(CC) $(CFLAGS) $< -c -o $@
++ $(CC) $(CFLAGS) $(GTK2_CFLAGS) $< -c -o $@
+
+ clean:
+ rm $(OBJECTS) $(OUT)
+diff -r 9b8def6626d0 lyrics.c
+--- a/lyrics.c Fri Jul 08 18:04:05 2011 +0300
++++ b/lyrics.c Mon Mar 03 20:16:19 2014 +0100
+@@ -365,7 +365,7 @@
+ .title = "Find lyrics",
+ .name = "lyrics_lookup",
+ .flags = DB_ACTION_SINGLE_TRACK,
+- .callback = lyrics_action_lookup,
++ .callback = (DB_plugin_action_callback_t)lyrics_action_lookup,
+ .next = NULL
+ };
+