aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-04 18:38:05 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:41 +0200
commit49ade3fa412b423badd44edfbd29f97b9fcc6615 (patch)
treed705ad769a398af64cbfe529a687457de85f1336 /PKGBUILD
downloadpkgbuilds-49ade3fa412b423badd44edfbd29f97b9fcc6615.tar.xz
mpv-git: import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..e8c7f0f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+pkgname=mpv-git
+pkgver=0.38556.c19ec6f
+pkgrel=1
+
+pkgdesc='Video player based on MPlayer/mplayer2 (git version)'
+arch=('i686' 'x86_64')
+license=('GPL')
+url='http://mpv.io'
+
+depends=('portaudio' 'ffmpeg' 'lcms2' 'libdvdread' 'libcdio-paranoia' 'libxinerama'
+ 'libquvi' 'mpg123' 'libxv' 'libxkbcommon' 'libva' 'lirc-utils'
+ 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua51'
+ 'libxss' 'sdl2' 'smbclient' 'libguess' 'libdvdnav')
+makedepends=('mesa' 'python-docutils' 'git')
+
+provides=('mpv')
+conflicts=('mpv')
+
+options=(!emptydirs)
+
+install=mpv.install
+
+source=('git+http://github.com/mpv-player/mpv#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd mpv
+ printf '0.r%s.%s' "$(git rev-list --count HEAD)" "$(git log -1 --pretty=format:%h)"
+}
+
+build() {
+ CFLAGS="$CFLAGS -I/usr/include/samba-4.0"
+ cd mpv
+ ./bootstrap.py
+ ./waf configure \
+ --prefix=/usr \
+ --confdir=/etc/mpv \
+ \
+ --disable-cocoa \
+ --disable-coreaudio \
+ --disable-corevideo \
+ --disable-direct3d \
+ --disable-dsound \
+ --disable-gl-win32 \
+ --disable-wasapi \
+ \
+ --disable-libbs2b \
+ --disable-rsound \
+ --disable-sndio \
+ \
+ --enable-sdl2
+
+ ./waf build
+}
+
+package() {
+ CFLAGS="$CFLAGS -I/usr/include/samba-4.0"
+ cd mpv
+ ./waf install --destdir="$pkgdir"
+
+ install -d "$pkgdir"/usr/share/doc/mpv/examples
+ install -m644 etc/{input,example}.conf "$pkgdir"/usr/share/doc/mpv/examples
+ install -m644 DOCS/{encoding.rst,tech-overview.txt} "$pkgdir"/usr/share/doc/mpv
+ install -m755 TOOLS/mpv_identify.sh "$pkgdir"/usr/bin
+}