mpv-mpris: update to 0.2.

This commit is contained in:
maxice8 2018-07-23 17:21:49 -03:00
parent 08ad59779d
commit 6fa4c37802
2 changed files with 9 additions and 16 deletions

View file

@ -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

View file

@ -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 <arch@subosito.com>"
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