summaryrefslogtreecommitdiff
path: root/repo/apps/mpv.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
commit606bc59d0f8f67815c6a717843835477d44db6b3 (patch)
tree687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/apps/mpv.xibuild
parent1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff)
added ungoogled chromium
Diffstat (limited to 'repo/apps/mpv.xibuild')
-rw-r--r--repo/apps/mpv.xibuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/apps/mpv.xibuild b/repo/apps/mpv.xibuild
new file mode 100644
index 0000000..6770c54
--- /dev/null
+++ b/repo/apps/mpv.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="mpv"
+DESC="Video player based on MPlayer/mplayer2"
+
+MAKEDEPS="make waf"
+DEPS="alsa-lib faac ffmpeg4 freetype2 lame aom libass libtheora libva libvdpau libxext libxinerama libxkbcommon libxrandr libxscrnsaver libxv libxvmc libxxf86dga lua mesa perl pulseaudio python-docutils python xvidcore zlib "
+
+PKG_VER=0.34.1
+SOURCE="https://github.com/mpv-player/mpv/archive/v$PKG_VER/mpv-$PKG_VER.tar.gz"
+
+prepare () {
+ ln -s /usr/bin/waf waf
+}
+
+build () {
+ python3 waf configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-alsa \
+ --enable-pulse \
+ --enable-libmpv-shared \
+ --enable-wayland \
+ --enable-lua \
+ --enable-test
+ python3 waf build
+}
+
+package () {
+ python3 waf install --destdir=$PKG_DEST
+}