# mpv - Media player
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=mpv
version=0.41.0
release=1
desc="Media player"
url="https://mpv.io/"
license="GPL-2.0-or-later"
depend="ffmpeg libplacebo wayland mesa alsa-lib pipewire libxkbcommon"
makedepend="meson ninja"
source="https://github.com/mpv-player/mpv/archive/refs/tags/v0.41.0.tar.gz"
sha256="SKIP"

build() {
	cd "mpv-0.41.0"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "mpv-0.41.0"
	DESTDIR="$pkgdir" ninja -C build install
}
