From 6fa4c378022fbf6df42568353e62ed52a357c633 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 23 Jul 2018 17:21:49 -0300 Subject: [PATCH] mpv-mpris: update to 0.2. --- srcpkgs/mpv-mpris/patches/fix_build.patch | 11 ----------- srcpkgs/mpv-mpris/template | 14 +++++++++----- 2 files changed, 9 insertions(+), 16 deletions(-) delete mode 100644 srcpkgs/mpv-mpris/patches/fix_build.patch diff --git a/srcpkgs/mpv-mpris/patches/fix_build.patch b/srcpkgs/mpv-mpris/patches/fix_build.patch deleted file mode 100644 index 177ae93dc92..00000000000 --- a/srcpkgs/mpv-mpris/patches/fix_build.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 index c736d5960b6..1de439670df 100644 --- a/srcpkgs/mpv-mpris/template +++ b/srcpkgs/mpv-mpris/template @@ -1,9 +1,9 @@ # Template file for 'mpv-mpris' pkgname=mpv-mpris -version=0.1 +version=0.2 revision=1 build_style=gnu-makefile -make_use_env=yes +make_build_target=mpris.so hostmakedepends="pkg-config" makedepends="libglib-devel mpv-devel" depends="mpv" @@ -11,9 +11,13 @@ 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" +distfiles="https://github.com/hoyon/mpv-mpris/archive/${version}.tar.gz" +checksum=d21a9617759bc368d6e9cb229d099b12968f0e673db5cd0bf12d8a251516d81a + +pre_build() { + sed -e 's|CFLAGS=|override CFLAGS += |' \ + -e 's|LDFLAGS=|override LDFLAGS += |' -i Makefile +} do_install() { vlicense LICENSE