From 1035aa9c55270bbc6120d402fedfc9384e4ac2c8 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Tue, 20 Mar 2018 05:09:01 +0700 Subject: [PATCH] New package: mpv-mpris-0.1 --- srcpkgs/mpv-mpris/patches/fix_build.patch | 11 +++++++++++ srcpkgs/mpv-mpris/template | 22 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/mpv-mpris/patches/fix_build.patch create mode 100644 srcpkgs/mpv-mpris/template diff --git a/srcpkgs/mpv-mpris/patches/fix_build.patch b/srcpkgs/mpv-mpris/patches/fix_build.patch new file mode 100644 index 0000000000..177ae93dc9 --- /dev/null +++ b/srcpkgs/mpv-mpris/patches/fix_build.patch @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -1,8 +1,8 @@ +-CFLAGS=-std=c99 -Wall -Wextra -O2 `pkg-config --cflags gio-2.0 gio-unix-2.0 mpv` +-LDFLAGS=`pkg-config --libs gio-2.0 gio-unix-2.0` ++CFLAGS += -std=c99 -Wall -Wextra -O2 $(shell pkg-config --cflags gio-2.0 gio-unix-2.0 mpv) ++LDFLAGS += $(shell pkg-config --libs gio-2.0 gio-unix-2.0) + + mpris.so: mpris.c +- gcc mpris.c -o mpris.so $(CFLAGS) $(LDFLAGS) -shared -fPIC ++ $(CC) mpris.c -o mpris.so $(CFLAGS) $(LDFLAGS) -shared -fPIC diff --git a/srcpkgs/mpv-mpris/template b/srcpkgs/mpv-mpris/template new file mode 100644 index 0000000000..c736d5960b --- /dev/null +++ b/srcpkgs/mpv-mpris/template @@ -0,0 +1,22 @@ +# Template file for 'mpv-mpris' +pkgname=mpv-mpris +version=0.1 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config" +makedepends="libglib-devel mpv-devel" +depends="mpv" +short_desc="MPRIS plugin for mpv" +maintainer="Alif Rachmawadi " +license="MIT" +homepage="https://github.com/hoyon/mpv-mpris" +distfiles="https://github.com/hoyon/mpv-mpris/archive/v${version}.tar.gz" +checksum=47afa6064fdd7552079d1574644bb1b16b782e96ed6aeebe24269e00b90a381b +make_build_target="mpris.so" + +do_install() { + vlicense LICENSE + vmkdir usr/lib/${pkgname} + vinstall mpris.so 0644 usr/lib/${pkgname} +}