APP=mpv
VERSION=0.32.0
BUILD=1sml
HOMEPAGE="http://mpv.io"
DOWNLOAD="https://github.com/mpv-player/mpv/archive/refs/tags/v0.32.0.tar.gz"
DESC="a movie player based on MPlayer and mplayer2"
REQUIRES="ffmpeg gtk2 gdk-pixbuf harfbuzz"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  zcat $SRCDIR/waf-2.0.9.gz > waf 
  chmod +x waf

  CXXFLAGS+=" -fPIC"
  ./waf configure \
    --prefix="" \
    --confdir=/etc/mpv \
    --enable-egl-x11 

  ./waf build $MAKEFLAGS 
  ./waf --destdir="$PKG" install 

  cp LICENSE* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
8d0fdf6dd757a9d8650ff7747fb4c2cac3f91f0f1b4bf77879e3e564be4440db3b6dc37f0ebe3921dc517a93eaa9e1ce72c222e43dfd1cfbadfe9d4b7b26bffa  mpv-0.32.0.tar.lz
"
