summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deadbeef-plugin-lyricbar-git/.SRCINFO20
-rw-r--r--deadbeef-plugin-lyricbar-git/.gitignore1
-rw-r--r--deadbeef-plugin-lyricbar-git/PKGBUILD44
-rw-r--r--deadbeef-plugin-lyricbar-git/deadbeef-lyricbar-makefile.patch20
4 files changed, 85 insertions, 0 deletions
diff --git a/deadbeef-plugin-lyricbar-git/.SRCINFO b/deadbeef-plugin-lyricbar-git/.SRCINFO
new file mode 100644
index 0000000..eb22c72
--- /dev/null
+++ b/deadbeef-plugin-lyricbar-git/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = deadbeef-plugin-lyricbar-git
+ pkgdesc = DeaDBeeF lyric bar plugin
+ pkgver = r60.ga08374c
+ pkgrel = 1
+ url = https://github.com/C0rn3j/deadbeef-lyricbar
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = deadbeef-git
+ depends = libxml++
+ optdepends = gtkmm3
+ optdepends = gtkmm
+ source = deadbeef-lyricbar::git+https://github.com/C0rn3j/deadbeef-lyricbar
+ source = deadbeef-lyricbar-makefile.patch
+ sha256sums = SKIP
+ sha256sums = 7c3088f5e4f703aca04011158e27087643410a189c2dcbb1fbd65fdbca8b216f
+
+pkgname = deadbeef-plugin-lyricbar-git
+
diff --git a/deadbeef-plugin-lyricbar-git/.gitignore b/deadbeef-plugin-lyricbar-git/.gitignore
new file mode 100644
index 0000000..eed750e
--- /dev/null
+++ b/deadbeef-plugin-lyricbar-git/.gitignore
@@ -0,0 +1 @@
+deadbeef-lyricbar
diff --git a/deadbeef-plugin-lyricbar-git/PKGBUILD b/deadbeef-plugin-lyricbar-git/PKGBUILD
new file mode 100644
index 0000000..93c509b
--- /dev/null
+++ b/deadbeef-plugin-lyricbar-git/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
+#
+# Upstream: https://git.metalpunks.info/arch-ports
+
+_pkgname=deadbeef-lyricbar
+pkgname=deadbeef-plugin-lyricbar-git
+pkgver=r60.ga08374c
+pkgrel=1
+pkgdesc="DeaDBeeF lyric bar plugin"
+arch=('i686' 'x86_64')
+url="https://github.com/C0rn3j/deadbeef-lyricbar"
+license=('MIT')
+depends=('deadbeef-git' 'libxml++')
+optdepends=('gtkmm3' 'gtkmm')
+makedepends=('git')
+source=("${_pkgname}::git+${url}"
+ "${_pkgname}-makefile.patch")
+sha256sums=('SKIP'
+ '7c3088f5e4f703aca04011158e27087643410a189c2dcbb1fbd65fdbca8b216f')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.g%s" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${_pkgname}"
+
+ # Arch compile FLAGS
+ patch -p1 -i ../${_pkgname}-makefile.patch
+}
+
+build() {
+ cd "${_pkgname}"
+ make COPTS="${CFLAGS}" CXXOPTS="${CXXFLAGS}"
+ make COPTS="${CFLAGS}" CXXOPTS="${CXXFLAGS}" gtk2
+}
+
+package() {
+ cd "${_pkgname}"
+ make prefix="${pkgdir}/usr" install
+}
diff --git a/deadbeef-plugin-lyricbar-git/deadbeef-lyricbar-makefile.patch b/deadbeef-plugin-lyricbar-git/deadbeef-lyricbar-makefile.patch
new file mode 100644
index 0000000..d738689
--- /dev/null
+++ b/deadbeef-plugin-lyricbar-git/deadbeef-lyricbar-makefile.patch
@@ -0,0 +1,20 @@
+diff -u -r -N deadbeef-lyricbar/Makefile deadbeef-lyricbar-patched/Makefile
+--- deadbeef-lyricbar/Makefile 2019-01-26 07:15:48.094070816 +0100
++++ deadbeef-lyricbar-patched/Makefile 2019-01-26 07:23:44.715782959 +0100
+@@ -1,5 +1,5 @@
+-CFLAGS+=-std=c99 -Wall -O2 -D_GNU_SOURCE -fPIC -fvisibility=hidden -flto
+-CXXFLAGS+=-std=c++14 -Wall -O2 -fPIC -fvisibility=hidden -flto
++CFLAGS+=-std=c99 -Wall $(COPTS) -D_GNU_SOURCE -fPIC -fvisibility=hidden -flto
++CXXFLAGS+=-std=c++14 -Wall $(CXXOPTS) -fPIC -fvisibility=hidden -flto
+ LIBFLAGS=`pkg-config --cflags libxml++-3.0 $(GTKMM) $(GTK)`
+ LIBS=`pkg-config --libs libxml++-3.0 $(GTKMM) $(GTK)`
+
+@@ -32,7 +32,7 @@
+ install:
+ install -d $(prefix)/lib/deadbeef
+ install -d $(prefix)/share/locale/ru/LC_MESSAGES
+- install -m 666 -D *.so $(prefix)/lib/deadbeef
++ install -m 0755 -D *.so $(prefix)/lib/deadbeef
+ msgfmt gettext/ru/deadbeef-lyricbar.po -o $(prefix)/share/locale/ru/LC_MESSAGES/deadbeef-lyricbar.mo
+
+ clean: