blob: 280694afdf85f07cc24b365ba384bce8c827f57b (
plain)
1 # Description: General Purpose video player based on MPlayer and mplayer2
2 # URL: http://mpv.io/
3 # Maintainer: Svyatoslav Mishyn, svyatoslav dot mishyn at gmail dot com
4 # Depends on: alsa-lib docutils ffmpeg libass mesa3d
5 # Optional: libquvi libdvdnav libbluray libcdio-paranoia libvdpau
6
7 name=mpv
8 version=0.27.0
9 release=1
10 source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 [ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
16 [ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
17
18 printf "\e[031mNote: for optical audio/dvd/blu-ray playback you need to:
19 prt-get depinst libcdio-paranoia libdvdnav libbluray, respectively.\033[0m\n"
20 sleep 10
21
22 ./bootstrap.py
23 ./waf configure ${PKGMK_MPV} \
24 --prefix=/usr \
25 --enable-libarchive \
26 --enable-libmpv-shared
27
28 ./waf build
29 ./waf install --destdir=$PKG
30 rm -r $PKG/usr/share/doc
31 }
|