contrib/mpv/Pkgfile

31 lines
865 B
Plaintext
Raw Normal View History

2013-08-19 20:26:13 +02:00
# Description: General Purpose video player based on MPlayer and mplayer2
# URL: https://mpv.io/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: docutils ffmpeg libass shaderc util-linux xorg-libxscrnsaver
# Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband
2013-08-19 20:26:13 +02:00
name=mpv
2019-10-25 17:08:51 +02:00
version=0.30.0
release=1
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz
https://waf.io/waf-2.0.9)
2013-08-19 20:26:13 +02:00
2016-06-10 11:02:55 +02:00
build() {
2013-08-25 14:40:25 +02:00
cd $name-$version
2013-08-19 20:26:13 +02:00
2019-10-25 17:08:51 +02:00
install -m0755 $SRC/waf-2.0.9 waf
2017-07-23 22:01:42 +02:00
[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
2019-10-25 17:08:51 +02:00
[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdnav'
./waf configure ${PKGMK_MPV} \
--prefix=/usr \
--enable-libarchive \
--enable-libmpv-shared \
-j ${JOBS-1}
2016-06-10 10:50:46 +02:00
2015-03-23 13:15:23 +01:00
./waf build
./waf install --destdir=$PKG
rm -r $PKG/usr/share/doc
2013-08-19 20:26:13 +02:00
}