contrib/mpv/Pkgfile

37 lines
1.1 KiB
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
2021-04-06 17:08:27 +02:00
version=0.33.1
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
2021-02-27 13:37:40 +01:00
mpv-libplacebo-3.104.0-api-change.patch
2019-12-01 02:39:02 +01:00
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
2021-02-27 13:37:40 +01:00
patch -p1 -i $SRC/mpv-libplacebo-3.104.0-api-change.patch
2019-10-25 17:08:51 +02:00
install -m0755 $SRC/waf-2.0.9 waf
2020-11-23 14:41:41 +01:00
[[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ]] && PKGMK_MPV+=' --enable-cdda'
[[ -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
}