blob: 022cc55db6feaca6fd1987552b6fca08183229d9 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Jakub Skrzypnik <j.skrzypnik@openmailbox.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpv
pkgver=0.29.1
pkgrel=1
pkgdesc="Video player based on MPlayer/mplayer2"
url="https://mpv.io/"
arch="all"
license="GPL-2.0-or-later LGPL-2.0-or-later"
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 python2
libxext-dev libxinerama-dev libxscrnsaver-dev py-docutils libxrandr-dev
wayland-dev cmocka-dev"
subpackages="
$pkgname-doc
$pkgname-libs
$pkgname-zsh-completion:zshcomp:noarch"
options="net" # downloads a waf tarball
source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 0.27.0-r3:
# - CVE-2018-6360
prepare() {
default_prepare
cd "$builddir"
./bootstrap.py
}
build() {
cd "$builddir"
./waf configure --prefix=/usr \
--mandir=/usr/share/man \
--confdir=/etc/mpv \
--enable-alsa \
--enable-libass \
--enable-libmpv-shared \
--enable-zsh-comp \
--enable-test
./waf build
}
check() {
cd "$builddir"
find build/test/ -perm -111 -exec '{}' ';'
}
package() {
cd "$builddir"
./waf install --destdir="$pkgdir"
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
install -m644 "$builddir"/DOCS/*.rst "$builddir"/DOCS/*.md \
"$pkgdir"/usr/share/doc/$pkgname/
# Move example configuration files to subdirectory
mkdir -p "$pkgdir"/usr/share/doc/mpv/examples
mv "$pkgdir"/usr/share/doc/mpv/*.conf \
"$pkgdir"/usr/share/doc/mpv/examples/
}
zshcomp() {
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
mkdir -p "$subpkgdir/usr/share/zsh/site-functions"
mv "$pkgdir/usr/share/zsh/site-functions"/* \
"$subpkgdir/usr/share/zsh/site-functions"
}
sha512sums="ec57c9ceaaf2915ee237dd5a1c5ea5d22725d8611e28a9b998e5bb0d8ab5bdf3631d0267fc7b54da31cb1eaa145ef35841e68846bd41c3b9e1024902e92fd086 mpv-0.29.1.tar.gz"
|