New package: mpv-mpris-0.1

This commit is contained in:
Alif Rachmawadi 2018-03-20 05:09:01 +07:00 committed by Toyam Cox
parent fe537c1a4e
commit 1035aa9c55
2 changed files with 33 additions and 0 deletions

View file

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

View file

@ -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 <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"
do_install() {
vlicense LICENSE
vmkdir usr/lib/${pkgname}
vinstall mpris.so 0644 usr/lib/${pkgname}
}