contrib/mpv/Pkgfile

34 lines
1011 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
2019-12-01 02:39:02 +01:00
# Depends on: ffmpeg libass libplacebo util-linux xorg-libxscrnsaver
# Optional: docutils youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband
2013-08-19 20:26:13 +02:00
name=mpv
2020-02-01 10:55:21 +01:00
version=0.32.0
2020-01-06 14:05:04 +01:00
release=1
2019-10-25 17:08:51 +02:00
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz
2019-12-01 02:39:02 +01:00
https://waf.io/waf-2.0.9
mpv.1)
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'
2020-01-06 14:05:04 +01:00
/usr/bin/python3 waf configure ${PKGMK_MPV} \
--prefix=/usr \
--enable-libarchive \
--enable-libmpv-shared \
-j ${JOBS-1}
2016-06-10 10:50:46 +02:00
2020-01-06 14:05:04 +01:00
/usr/bin/python3 waf build
/usr/bin/python3 waf install --destdir=$PKG
rm -r $PKG/usr/share/doc
2019-12-01 02:39:02 +01:00
[ -e '/usr/bin/rst2man.py' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/mpv.1
2013-08-19 20:26:13 +02:00
}