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-04-24 05:29:56 +08:00
|
|
|
pkgver=0.3.8
|
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-04-24 05:29:56 +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')
|
|
|
|
makedepends=('mesa' 'python3-docutils' 'ladspa')
|
|
|
|
options=('!emptydirs' '!buildflags')
|
2014-02-03 17:59:56 +08:00
|
|
|
install=${pkgname}.install
|
|
|
|
source=("https://github.com/mpv-player/$pkgname/archive/v${pkgver}.tar.gz")
|
2014-04-24 05:29:56 +08:00
|
|
|
md5sums=('f7fc14f52c1958f6b603245b0595efa9')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./bootstrap.py
|
|
|
|
}
|
2014-02-03 17:59:56 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
2014-04-24 05:29:56 +08:00
|
|
|
./waf configure --prefix=/usr \
|
2014-02-03 17:59:56 +08:00
|
|
|
--confdir=/etc/mpv \
|
2014-04-24 05:29:56 +08:00
|
|
|
--enable-joystick \
|
|
|
|
--enable-pulse
|
|
|
|
./waf build
|
2014-02-03 17:59:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
2014-04-24 05:29:56 +08:00
|
|
|
./waf install --destdir="$pkgdir"
|
2014-02-03 17:59:56 +08:00
|
|
|
|
|
|
|
install -d ${pkgdir}/usr/share/doc/mpv/examples
|
|
|
|
|
|
|
|
# some extra useful stuff "make install" doesn't install
|
2014-04-24 05:29:56 +08:00
|
|
|
install -m644 etc/{input,example}.conf \
|
|
|
|
"$pkgdir"/usr/share/doc/mpv/examples
|
|
|
|
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
|
|
|
|
"$pkgdir"/usr/share/doc/mpv
|
2014-02-03 17:59:56 +08:00
|
|
|
}
|