New package: mpv-mpris-0.1
This commit is contained in:
parent
fe537c1a4e
commit
1035aa9c55
2 changed files with 33 additions and 0 deletions
11
srcpkgs/mpv-mpris/patches/fix_build.patch
Normal file
11
srcpkgs/mpv-mpris/patches/fix_build.patch
Normal 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
|
22
srcpkgs/mpv-mpris/template
Normal file
22
srcpkgs/mpv-mpris/template
Normal 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}
|
||||
}
|
Loading…
Reference in a new issue