blob: 72b0f8ad24fd7a26cdde61d74b57d59dad6223fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpv
pkgver=0.7.1
pkgrel=0
pkgdesc="Video player based on MPlayer/mplayer2"
url="http://mpv.io/"
arch="all"
license="GPL"
depends=
makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev
libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev
x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev libva-dev
mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python
libxext-dev libxscrnsaver-dev"
install=""
subpackages="$pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz
"
_builddir="$srcdir"/mpv-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
./bootstrap.py
}
build() {
cd "$_builddir"
./waf configure --prefix=/usr \
--mandir=/usr/share/man \
--confdir=/etc/mpv \
--enable-libmpv-shared \
--enable-libass \
--enable-xss \
|| return 1
./waf build || return 1
}
package() {
cd "$_builddir"
./waf install --destdir="$pkgdir" || return 1
}
md5sums="8112478d360135b2c78ea08dac3b9b22 mpv-0.7.1.tar.gz"
sha256sums="ccc361a7551977f1fd2ef5aaa44e93997322a77ff7fbbde339b17a7824ac36bf mpv-0.7.1.tar.gz"
sha512sums="6d04bab99f89f9dde215622116d38baaa78b20cff94c985b6edd1545162528dd3dbdc1e898bedcd5ac56b7c15e77f3f723333d8bc28a5b709802c7f8f6f33548 mpv-0.7.1.tar.gz"
|