mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
Enable lua support explicitly, because it got disabled without anyone noticing instead of throwing an error during build. Commit cdf8852d1e5ef6c766b94eec7f31fb38410dad8f changed lua5.2-dev in makedepends to lua5.3-dev, but mpv needs either lua5.2 or luajit.
105 lines
2.3 KiB
Plaintext
105 lines
2.3 KiB
Plaintext
# 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=3
|
|
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="
|
|
alsa-lib-dev
|
|
cmocka-dev
|
|
faac-dev
|
|
ffmpeg-dev
|
|
freetype-dev
|
|
lame-dev
|
|
libao-dev
|
|
libass-dev
|
|
libmad-dev
|
|
libtheora-dev
|
|
libva-dev>=2.4.1
|
|
libvdpau-dev
|
|
libxext-dev
|
|
libxinerama-dev
|
|
libxkbcommon-dev
|
|
libxrandr-dev
|
|
libxscrnsaver-dev
|
|
libxv-dev
|
|
libxvmc-dev
|
|
libxxf86dga-dev
|
|
lua5.2-dev
|
|
mesa-dev
|
|
perl
|
|
py-docutils
|
|
python2
|
|
ttf-dejavu
|
|
wayland-dev
|
|
wayland-protocols
|
|
x264-dev
|
|
xvidcore-dev
|
|
zlib-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
|
|
./bootstrap.py
|
|
}
|
|
|
|
build() {
|
|
./waf configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--confdir=/etc/mpv \
|
|
--enable-alsa \
|
|
--enable-libass \
|
|
--enable-libmpv-shared \
|
|
--enable-wayland \
|
|
--enable-lua \
|
|
--enable-zsh-comp \
|
|
--enable-test
|
|
./waf build
|
|
}
|
|
|
|
check() {
|
|
find build/test/ -perm -111 -exec '{}' ';'
|
|
}
|
|
|
|
package() {
|
|
./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"
|