summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deadbeef-plugin-medialib-git/.SRCINFO21
-rw-r--r--deadbeef-plugin-medialib-git/.gitignore1
-rw-r--r--deadbeef-plugin-medialib-git/PKGBUILD47
-rw-r--r--deadbeef-plugin-medialib-git/ddb_medialib-iostream.patch29
-rw-r--r--deadbeef-plugin-medialib-git/ddb_medialib-makefile.patch14
5 files changed, 112 insertions, 0 deletions
diff --git a/deadbeef-plugin-medialib-git/.SRCINFO b/deadbeef-plugin-medialib-git/.SRCINFO
new file mode 100644
index 0000000..bc30f33
--- /dev/null
+++ b/deadbeef-plugin-medialib-git/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = deadbeef-plugin-medialib-git
+ pkgdesc = DeaDBeeF media library plugin
+ pkgver = r100.g8111116
+ pkgrel = 1
+ url = https://github.com/sgomin/ddb_medialib
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = deadbeef-git
+ depends = gtkmm3
+ depends = boost
+ source = ddb_medialib::git+https://github.com/sgomin/ddb_medialib
+ source = ddb_medialib-makefile.patch
+ source = ddb_medialib-iostream.patch
+ sha256sums = SKIP
+ sha256sums = 979ec8cf3836a906dc70836fe2141438501a1ac450735dd2b5c3166a25c594d4
+ sha256sums = 665b1f8c2571f8ad8b556856300ccdae8ce44cd256e43e2c73525ce54591ba61
+
+pkgname = deadbeef-plugin-medialib-git
+
diff --git a/deadbeef-plugin-medialib-git/.gitignore b/deadbeef-plugin-medialib-git/.gitignore
new file mode 100644
index 0000000..16b2530
--- /dev/null
+++ b/deadbeef-plugin-medialib-git/.gitignore
@@ -0,0 +1 @@
+ddb_medialib
diff --git a/deadbeef-plugin-medialib-git/PKGBUILD b/deadbeef-plugin-medialib-git/PKGBUILD
new file mode 100644
index 0000000..6b91218
--- /dev/null
+++ b/deadbeef-plugin-medialib-git/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
+#
+# Upstream: https://git.metalpunks.info/arch-ports
+
+_pkgname=ddb_medialib
+pkgname=deadbeef-plugin-medialib-git
+pkgver=r100.g8111116
+pkgrel=1
+pkgdesc="DeaDBeeF media library plugin"
+arch=('i686' 'x86_64')
+url="https://github.com/sgomin/ddb_medialib"
+license=('custom')
+depends=('deadbeef-git' 'gtkmm3' 'boost')
+makedepends=('git')
+source=("${_pkgname}::git+https://github.com/sgomin/${_pkgname}"
+ "${_pkgname}-makefile.patch"
+ "${_pkgname}-iostream.patch")
+sha256sums=('SKIP'
+ '979ec8cf3836a906dc70836fe2141438501a1ac450735dd2b5c3166a25c594d4'
+ '665b1f8c2571f8ad8b556856300ccdae8ce44cd256e43e2c73525ce54591ba61')
+
+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
+
+ # Fix missing iostream includes
+ patch -p1 -i ../${_pkgname}-iostream.patch
+}
+
+build() {
+ cd "${_pkgname}"
+ make COPT="${CFLAGS}" CXXOPT="${CXXFLAGS}"
+}
+
+package() {
+ cd "${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/deadbeef-plugin-medialib-git/ddb_medialib-iostream.patch b/deadbeef-plugin-medialib-git/ddb_medialib-iostream.patch
new file mode 100644
index 0000000..265440c
--- /dev/null
+++ b/deadbeef-plugin-medialib-git/ddb_medialib-iostream.patch
@@ -0,0 +1,29 @@
+diff -r -u -N ddb_medialib/main_widget.cpp ddb_medialib-iostream/main_widget.cpp
+--- ddb_medialib/main_widget.cpp 2018-09-30 22:15:22.851442464 +0200
++++ ddb_medialib-iostream/main_widget.cpp 2018-09-30 22:14:59.861088268 +0200
+@@ -3,6 +3,7 @@
+ #include "settings_dlg.hpp"
+ #include "medialib.h"
+
++#include <iostream>
+ #include <fstream>
+
+ struct ByDirectoryColumns : Gtk::TreeModel::ColumnRecord
+@@ -457,4 +458,4 @@
+ {
+ locked->onChanged(/*restart*/true);
+ }
+-}
+\ No newline at end of file
++}
+diff -r -u -N ddb_medialib/scan_thread.cpp ddb_medialib-iostream/scan_thread.cpp
+--- ddb_medialib/scan_thread.cpp 2018-09-30 22:15:22.851442464 +0200
++++ ddb_medialib-iostream/scan_thread.cpp 2018-09-30 22:14:59.861088268 +0200
+@@ -4,6 +4,7 @@
+ #include <boost/range.hpp>
+ #include <boost/scope_exit.hpp>
+
++#include <iostream>
+ #include <thread>
+
+ namespace pl = std::placeholders;
diff --git a/deadbeef-plugin-medialib-git/ddb_medialib-makefile.patch b/deadbeef-plugin-medialib-git/ddb_medialib-makefile.patch
new file mode 100644
index 0000000..19d7583
--- /dev/null
+++ b/deadbeef-plugin-medialib-git/ddb_medialib-makefile.patch
@@ -0,0 +1,14 @@
+diff -r -u -N ddb_medialib/Makefile ddb_medialib-makefile/Makefile
+--- ddb_medialib/Makefile 2018-09-30 22:01:37.524776612 +0200
++++ ddb_medialib-makefile/Makefile 2018-09-30 22:03:31.003392745 +0200
+@@ -18,8 +18,8 @@
+ CXXFLAGS += -DDEBUG -ggdb3 -Wall
+ CCFLAGS += -DDEBUG -ggdb3 -Wall
+ else
+- CXXFLAGS += -DNDEBUG -O3
+- CCFLAGS += -DNDEBUG -O3
++ CXXFLAGS += -DNDEBUG $(CXXOPT)
++ CCFLAGS += -DNDEBUG $(COPT)
+ endif
+
+ ifdef GTK2