mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
mpv-mpris: update to 0.2.
This commit is contained in:
parent
08ad59779d
commit
6fa4c37802
2 changed files with 9 additions and 16 deletions
|
@ -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
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'mpv-mpris'
|
# Template file for 'mpv-mpris'
|
||||||
pkgname=mpv-mpris
|
pkgname=mpv-mpris
|
||||||
version=0.1
|
version=0.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_use_env=yes
|
make_build_target=mpris.so
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libglib-devel mpv-devel"
|
makedepends="libglib-devel mpv-devel"
|
||||||
depends="mpv"
|
depends="mpv"
|
||||||
|
@ -11,9 +11,13 @@ short_desc="MPRIS plugin for mpv"
|
||||||
maintainer="Alif Rachmawadi <arch@subosito.com>"
|
maintainer="Alif Rachmawadi <arch@subosito.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/hoyon/mpv-mpris"
|
homepage="https://github.com/hoyon/mpv-mpris"
|
||||||
distfiles="https://github.com/hoyon/mpv-mpris/archive/v${version}.tar.gz"
|
distfiles="https://github.com/hoyon/mpv-mpris/archive/${version}.tar.gz"
|
||||||
checksum=47afa6064fdd7552079d1574644bb1b16b782e96ed6aeebe24269e00b90a381b
|
checksum=d21a9617759bc368d6e9cb229d099b12968f0e673db5cd0bf12d8a251516d81a
|
||||||
make_build_target="mpris.so"
|
|
||||||
|
pre_build() {
|
||||||
|
sed -e 's|CFLAGS=|override CFLAGS += |' \
|
||||||
|
-e 's|LDFLAGS=|override LDFLAGS += |' -i Makefile
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue