#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=mpv
pkgver=0.32.0
pkgrel=3dj
_wafver=1.8.20
source=("https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz"
		"https://waf.io/waf-${_wafver}.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=https://mpv.io/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mpv (Video player based on MPlayer/mplayer2)"
"mpv is a fork of mplayer2 and MPlayer. It shares some features with"
"the former projects while introducing many more."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	install -m755 $startdir/src/waf-${_wafver}/waf waf

	./waf configure \
		--prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--enable-cdda \
		--enable-dvb \
		--enable-dvdnav \
		--enable-libarchive \
		--enable-libmpv-shared \
		--enable-libsmbclient \
		--disable-build-date
	./waf build || return 1
	./waf install --destdir="$startdir/pkg"

} 
