#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/mpv-git-install # # install on Debian 12: # [warning, this only worked once!] # sudo apt-get build-dep mpv # git clone https://github.com/mpv-player/mpv # cd mpv # mkdir -p subprojects # git clone https://code.videolan.org/videolan/libplacebo.git --depth=1 --recursive subprojects/libplacebo # meson setup build # meson compile -C build # sudo meson install -C build mpvv () { mpv --version | head -n 1 | cut -d " " -f 1,2 } mpv-install-prepare () { cd ~/src sudo apt-get build-dep mpv git clone https://github.com/mpv-player/mpv cd mpv mkdir -p subprojects git clone https://code.videolan.org/videolan/libplacebo.git --depth=1 --recursive subprojects/libplacebo } mpv-build () { meson setup build taskset -c 0-1 meson compile -C build } mpv-install () { sudo taskset -c 0-1 meson install -C build }