summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-10 10:30:14 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-08-10 10:30:14 -0500
commit7b873ea5523fb093277e0908e2e1fb328d43755c (patch)
tree58e6d6119ef22e35194220d983796b1d82f49502 /user
parent73792b47a5a952ff24fa690f75c0c04e69710ad8 (diff)
downloadpackages-7b873ea5523fb093277e0908e2e1fb328d43755c.tar.gz
packages-7b873ea5523fb093277e0908e2e1fb328d43755c.tar.bz2
packages-7b873ea5523fb093277e0908e2e1fb328d43755c.tar.xz
packages-7b873ea5523fb093277e0908e2e1fb328d43755c.zip
user/mpv: new package
Diffstat (limited to 'user')
-rw-r--r--user/mpv/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/user/mpv/APKBUILD b/user/mpv/APKBUILD
new file mode 100644
index 000000000..65f940b1c
--- /dev/null
+++ b/user/mpv/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=mpv
+pkgver=0.29.0
+pkgrel=0
+pkgdesc="An improved fork of mplayer"
+url="https://mpv.io"
+arch="all"
+options="!check" # no tests
+license="LGPL-2.1+ AND GPL-2.0+ AND ISC AND BSD-2-Clause AND MIT AND BSD-3-Clause"
+makedepends="python3
+ zlib-dev libarchive-dev py3-docutils uchardet-dev
+
+ alsa-lib-dev pulseaudio-dev
+
+ libx11-dev libxext-dev libxinerama-dev libxrandr-dev libxscrnsaver-dev
+ mesa-dev libva-dev lcms2-dev libvdpau-dev
+
+ ffmpeg-dev libbluray-dev v4l-utils-dev libass-dev libdvdread-dev
+ libdvdnav-dev libcdio-dev libcdio-paranoia-dev rubberband-dev
+ "
+subpackages="$pkgname-doc"
+source="mpv-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz"
+sha512sums="77204218bd217ae1da4812b09e0509965a3ef102d3de5cd4360f007ccf3779e4cbde5cfd6adae9629ea39062bd365e847429bdf7f9a1ddebd0a67d267492b221 mpv-0.29.0.tar.gz"
+
+build() {
+ cd "$builddir"
+ python3 ./bootstrap.py
+ python3 ./waf configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --destdir="$pkgdir" \
+ --disable-lua \
+ --disable-javascript \
+ --disable-wayland \
+ --disable-gl-wayland \
+ --enable-dvdread \
+ --enable-dvdnav \
+ --enable-cdda \
+ --enable-tv
+ python3 ./waf build
+}
+
+package() {
+ cd "$builddir"
+ python3 ./waf install --destdir="$pkgdir"
+}
+