aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpv/APKBUILD
blob: 695b445003731a34b919cdba23c3b57e304ebbdc (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpv
pkgver=0.4.0
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"
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 \
		--disable-libass \
		|| return 1

	./waf build || return 1
}

package() {
	cd "$_builddir"
	./waf install --destdir="$pkgdir" || return 1
}

md5sums="6b1ec7e8e3a2bcb5af68d62cea4577ba  mpv-0.4.0.tar.gz"
sha256sums="61bb893306fd4e0633d366b60ef0f5988af898dd49e6e87f69cbbe9dcfb49ece  mpv-0.4.0.tar.gz"
sha512sums="67356b8e0bbff0ac2162ffb898e74aef81220e3da177a007b0243d9bf884c79b67460c2fe171ce1d78105c094965df4cfe4b4e2b6c04e3f95f366604e50bffa4  mpv-0.4.0.tar.gz"