summaryrefslogtreecommitdiff
path: root/deadbeef-plugin-medialib-git/PKGBUILD
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-30 22:41:46 +0200
committerDeposite Pirate2018-09-30 22:41:46 +0200
commitecd6c106d2e359d3a909af47de1c7c7d035382e2 (patch)
treee30ddf33486ca560168fa7f3437cd0d066af674f /deadbeef-plugin-medialib-git/PKGBUILD
parent23ada2a010e551f3a04630730356ee96825a5739 (diff)
Add DeadBeeF media library plugin.
new file: deadbeef-plugin-medialib-git/.SRCINFO new file: deadbeef-plugin-medialib-git/.gitignore new file: deadbeef-plugin-medialib-git/PKGBUILD new file: deadbeef-plugin-medialib-git/ddb_medialib-iostream.patch new file: deadbeef-plugin-medialib-git/ddb_medialib-makefile.patch
Diffstat (limited to 'deadbeef-plugin-medialib-git/PKGBUILD')
-rw-r--r--deadbeef-plugin-medialib-git/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
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
+}