desktop/mpv/PKGBUILD

57 lines
1.7 KiB
Bash
Raw Normal View History

2014-02-03 17:59:56 +08:00
pkgname=mpv
2018-05-26 13:55:15 +08:00
pkgver=0.28.2
pkgrel=1
_waf_version=1.9.8
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}")
sha256sums=('aada14e025317b5b3e8e58ffaf7902e8b6e4ec347a93d25a7c10d3579426d795'
'167dc42bab6d5bd823b798af195420319cb5c9b571e00db7d83df2a0fe1f4dbf')
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-encoding \
--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"
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
}