desktop/mpv/PKGBUILD

60 lines
1.8 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
2014-10-01 23:02:00 +08:00
pkgver=0.6.0
2014-02-03 17:59:56 +08:00
pkgrel=1
pkgdesc="A movie player and encoder for linux, based on MPlayer/mplayer2"
arch=('x86_64')
license=('GPL')
url="http://mpv.io"
2014-07-16 03:40:57 +08:00
depends=('pulseaudio' 'ffmpeg' 'lcms2' 'libdvdread' 'libquvi' 'libgl'
'libxinerama' 'mpg123' 'libxv' 'libxkbcommon' 'libva' 'libass'
'lirc-utils' 'wayland' 'desktop-file-utils' 'hicolor-icon-theme'
'xdg-utils' 'lua' 'libdvdnav' 'libcdio-paranoia' 'libbluray'
2014-09-15 20:06:30 +08:00
'enca' 'libguess' 'harfbuzz' 'graphite')
2014-04-24 05:29:56 +08:00
makedepends=('mesa' 'python3-docutils' 'ladspa')
options=('!emptydirs' '!buildflags')
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")
2014-10-01 23:02:00 +08:00
sha256sums=('838f999bdeb36f43888ce7627a8b5f4c5bc942c5c94b6898da15bfcd7d3d8ad1')
2014-04-24 05:29:56 +08:00
prepare() {
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-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 \
--disable-portaudio
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-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
}