desktop/mpv/PKGBUILD

63 lines
1.9 KiB
Bash
Raw Normal View History

2014-02-03 17:59:56 +08:00
pkgname=mpv
2018-10-03 08:01:30 +08:00
pkgver=0.29.1
pkgrel=1
_waf_version=2.0.9
2018-05-26 13:55:15 +08:00
pkgdesc='a free, open source, and cross-platform media player'
2014-02-03 17:59:56 +08:00
arch=('x86_64')
2018-05-26 13:55:15 +08:00
# We link against libraries that are licensed GPLv3 explicitly, libsmbclient
# being one of these. So our package is GPLv3 only as well.
license=('GPL3')
url='https://mpv.io/'
depends=('desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'jack' 'lcms2'
'libarchive' 'libcaca' 'libcdio-paranoia' 'libdvdnav' 'libgl' 'libva'
'libxinerama' 'libxkbcommon' 'libxrandr' 'libxss' 'libxv' 'lua52'
'rubberband' 'smbclient' 'uchardet' 'vulkan-icd-loader' 'wayland'
'xdg-utils')
makedepends=('mesa' 'python3-docutils' 'ladspa' 'wayland-protocols'
'vulkan-headers')
optdepends=('youtube-dl: for video-sharing websites playback')
2015-01-28 23:14:17 +08:00
options=('!emptydirs')
2018-05-26 13:55:15 +08:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
"https://waf.io/waf-${_waf_version}")
2018-10-03 08:01:30 +08:00
sha256sums=('f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623'
'2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48')
2017-07-21 12:50:07 +08:00
prepare() {
cd ${pkgname}-${pkgver}
2018-05-26 13:55:15 +08:00
install -m755 "${srcdir}"/waf-${_waf_version} waf
2017-07-21 12:50:07 +08:00
}
2018-05-26 13:55:15 +08:00
2014-02-03 17:59:56 +08:00
build() {
2014-07-16 03:40:57 +08:00
cd ${pkgname}-${pkgver}
2018-05-26 13:55:15 +08:00
./waf configure --prefix=/usr \
2014-07-16 03:40:57 +08:00
--confdir=/etc/mpv \
--enable-cdda \
2017-07-21 12:50:07 +08:00
--enable-dvb \
--enable-dvdnav \
2018-05-26 13:55:15 +08:00
--enable-libarchive \
--enable-libmpv-shared \
--enable-libsmbclient \
--enable-tv \
--enable-zsh-comp
./waf build
2014-02-03 17:59:56 +08:00
}
2018-05-26 13:55:15 +08:00
2014-02-03 17:59:56 +08:00
package() {
2014-07-16 03:40:57 +08:00
cd ${pkgname}-${pkgver}
2018-05-26 13:55:15 +08:00
./waf install --destdir="$pkgdir"
2018-06-16 09:20:57 +08:00
install -d "${pkgdir}/usr/share/doc/mpv/examples"
# some extra useful stuff "make install" doesn't install
install -m755 TOOLS/umpv \
"${pkgdir}"/usr/bin/umpv
install -m644 etc/input.conf \
"${pkgdir}"/usr/share/doc/mpv/examples
2014-04-24 05:29:56 +08:00
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
2018-05-26 13:55:15 +08:00
"$pkgdir"/usr/share/doc/mpv
2014-02-03 17:59:56 +08:00
}