desktop/mpv/PKGBUILD

74 lines
2.3 KiB
Bash
Raw Normal View History

2014-04-24 05:29:56 +08:00
# Maintainer: UtG <utg.chakra.linux[at]gmail[dot]com>
2014-03-28 22:08:05 +08:00
# Contributor: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
2014-02-03 17:59:56 +08:00
# Contributor: Samir Benmendil <ram-z[at]chakra-project[dot]org>
pkgname=mpv
2015-01-28 11:16:34 +08:00
pkgver=0.7.3
2015-01-29 00:22:55 +08:00
pkgrel=3
2014-02-03 17:59:56 +08:00
pkgdesc="A movie player and encoder for linux, based on MPlayer/mplayer2"
arch=('x86_64')
license=('GPL')
url="http://mpv.io"
2014-12-04 01:11:54 +08:00
depends=('pulseaudio' 'ffmpeg' 'lcms2' 'libdvdread' 'libgl'
2014-07-16 03:40:57 +08:00
'libxinerama' 'mpg123' 'libxv' 'libxkbcommon' 'libva' 'libass'
'lirc-utils' 'wayland' 'desktop-file-utils' 'hicolor-icon-theme'
'xdg-utils' 'lua' 'libdvdnav' 'libcdio-paranoia' 'libbluray'
2014-12-23 08:24:34 +08:00
'enca' 'libguess' 'harfbuzz' 'graphite' 'libxrandr')
2015-01-28 23:14:17 +08:00
makedepends=('mesa' 'python3-docutils' 'ladspa' 'x264' 'jack'
2015-01-29 00:22:55 +08:00
'samba' 'sdl2' 'libbs2b')
2015-01-28 23:14:17 +08:00
options=('!emptydirs')
2014-02-03 17:59:56 +08:00
install=${pkgname}.install
2014-07-16 03:40:57 +08:00
source=("https://github.com/mpv-player/${pkgname}/archive/v${pkgver}.tar.gz")
2015-01-28 11:16:34 +08:00
sha256sums=('88dcdc44264a8e9b9b73a95d03137d51071aea8c269cc19146109bf8f917e8b1')
2014-04-24 05:29:56 +08:00
prepare() {
2014-10-31 01:53:07 +08:00
# point python to python3
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' ${srcdir}/${pkgname}-${pkgver}/bootstrap.py
# initialize
2014-07-16 03:40:57 +08:00
cd ${pkgname}-${pkgver}
2014-04-24 05:29:56 +08:00
./bootstrap.py
2014-07-16 03:40:57 +08:00
sed -i 's/vendor-completions/site-functions/' wscript_build.py
2014-10-31 01:53:07 +08:00
# waf looking for python2...
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' ${srcdir}/${pkgname}-${pkgver}/waf
2014-04-24 05:29:56 +08:00
}
2014-02-03 17:59:56 +08:00
build() {
2014-07-16 03:40:57 +08:00
cd ${pkgname}-${pkgver}
2014-02-03 17:59:56 +08:00
2014-07-16 03:40:57 +08:00
# disable wayland, as long, as the version is too old
# it won't compile with 1.3.0
./waf configure \
--prefix=/usr \
--confdir=/etc/mpv \
--enable-joystick \
--enable-libmpv-shared \
--enable-cdda \
--enable-zsh-comp \
--enable-pulse \
2015-01-28 23:14:17 +08:00
--enable-sdl2 \
--enable-openal \
2015-01-28 17:14:38 +08:00
--enable-wayland \
--enable-gl-wayland \
2015-01-28 23:14:17 +08:00
--enable-egl-x11 \
--enable-libsmbclient \
--enable-dvdread
2014-04-24 05:29:56 +08:00
./waf build
2014-02-03 17:59:56 +08:00
}
package() {
2014-07-16 03:40:57 +08:00
cd ${pkgname}-${pkgver}
2014-02-03 17:59:56 +08:00
2014-07-16 03:40:57 +08:00
./waf install --destdir="${pkgdir}"
2014-02-03 17:59:56 +08:00
2014-07-16 03:40:57 +08:00
install -d "${pkgdir}/usr/share/doc/mpv/examples"
2014-02-03 17:59:56 +08:00
# some extra useful stuff "make install" doesn't install
2014-10-05 10:00:34 +08:00
install -m755 TOOLS/umpv \
"${pkgdir}"/usr/bin/umpv
2014-04-24 05:29:56 +08:00
install -m644 etc/{input,example}.conf \
2014-07-16 03:40:57 +08:00
"${pkgdir}"/usr/share/doc/mpv/examples
2014-04-24 05:29:56 +08:00
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
2014-07-16 03:40:57 +08:00
"${pkgdir}"/usr/share/doc/mpv
2014-02-03 17:59:56 +08:00
}