blob: 203e429b184f55f693293619a024582e34176559 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpv
pkgver=0.3.5
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 live-media-dev
mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python"
install=""
subpackages=""
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 \
|| return 1
./waf build || return 1
}
package() {
cd "$_builddir"
./waf install --destdir="$pkgdir" || return 1
}
md5sums="b3fdd3e70d6e53a14c3b1881343d2aca mpv-0.3.5.tar.gz"
sha256sums="0d1506ad448e42cd7c8de15c7d6c23725b62db87f3d0c4029f5b8c523c995f30 mpv-0.3.5.tar.gz"
sha512sums="9dad2f83b3eaee05197c40b257ad0ab84367d6334faa2950ff51e65d435fd9a7798ad4347a26d66e67bd8d0265bd1cd202fd621447f5c9fe2545a2d88d99d937 mpv-0.3.5.tar.gz"
|