aboutsummaryrefslogtreecommitdiffstats
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
downloadpkgbuilds-49ade3fa412b423badd44edfbd29f97b9fcc6615.tar.xz
mpv-git: import
-rw-r--r--.SRCINFO43
-rw-r--r--PKGBUILD65
-rw-r--r--mpv.install12
3 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..68a6e27
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,43 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 15:00:30 UTC 2015
+pkgbase = mpv-git
+ pkgdesc = Video player based on MPlayer/mplayer2 (git version)
+ pkgver = 0.38556.c19ec6f
+ pkgrel = 1
+ url = http://mpv.io
+ install = mpv.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = mesa
+ makedepends = python-docutils
+ makedepends = git
+ depends = portaudio
+ depends = ffmpeg
+ depends = lcms2
+ depends = libdvdread
+ depends = libcdio-paranoia
+ depends = libxinerama
+ depends = libquvi
+ depends = mpg123
+ depends = libxv
+ depends = libxkbcommon
+ depends = libva
+ depends = lirc-utils
+ depends = desktop-file-utils
+ depends = hicolor-icon-theme
+ depends = xdg-utils
+ depends = lua51
+ depends = libxss
+ depends = sdl2
+ depends = smbclient
+ depends = libguess
+ depends = libdvdnav
+ provides = mpv
+ conflicts = mpv
+ options = !emptydirs
+ source = git+http://github.com/mpv-player/mpv#branch=master
+ md5sums = SKIP
+
+pkgname = mpv-git
+
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
+}
diff --git a/mpv.install b/mpv.install
new file mode 100644
index 0000000..6c87527
--- /dev/null
+++ b/mpv.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}