Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- PKGBUILD 2014-04-13 18:08:15.000000000 -0400
+++ ../mpv-git/PKGBUILD 2014-04-12 19:05:11.763116556 -0400
@@ -1,42 +1,72 @@
-# $Id: PKGBUILD 108621 2014-03-30 17:03:31Z bpiotrowski $
-# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# $Id: PKGBUILD 99197 2013-10-25 12:45:06Z giovanni $
+# Maintainer: Rudolf Polzer <divVerent@xonotic.org>
+# Original-Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Eivind Uggedal <eivind@uggedal.com>
-pkgname=mpv
-pkgver=0.3.7
+pkgname=mpv-git
+_gitname="mpv"
+pkgver=0.37712.7696184
pkgrel=1
-pkgdesc='Video player based on MPlayer/mplayer2'
+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' 'libquvi' 'libgl'
- 'libxinerama' 'mpg123' 'libxv' 'libxkbcommon' 'libva' 'lirc-utils' 'wayland'
- 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua' 'libdvdnav'
-)
-makedepends=('mesa' 'python-docutils' 'ladspa')
-options=('!emptydirs' '!buildflags')
+ '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=(https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz)
-md5sums=('0e1398c324775998b0e60fdb11b9e06d')
+source=('git+http://github.com/mpv-player/mpv#branch=master')
+md5sums=('SKIP')
-prepare() {
- cd $pkgname-$pkgver
- ./bootstrap.py
+pkgver() {
+ cd "$srcdir/$_gitname"
+ microver="$(git log -1 --pretty=format:%h )"
+ minorver="$(git rev-list --count HEAD)"
+ echo "0.$minorver.$microver"
}
build() {
- cd $pkgname-$pkgver
-
+ CFLAGS="$CFLAGS -I/usr/include/samba-4.0"
+ cd "$srcdir/$_gitname"
+ ./bootstrap.py
+ # BLOCKS:
+ # 1. Global flags.
+ # 2. Features not available on Linux (but which waf configure tries to detect
+ # anyway).
+ # 3. Features not available on Arch Linux.
+ # 4. Features only available in AUR (when buillding from AUR, feel free to
+ # delete these and adjust dependencies above to enable these).
+ # To audit this: the waf configure run should output as few "no" as possible.
./waf configure --prefix=/usr \
--confdir=/etc/mpv \
- --enable-joystick
+ \
+ --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() {
- cd $pkgname-$pkgver
+ CFLAGS="$CFLAGS -I/usr/include/samba-4.0"
+ cd "$srcdir/$_gitname"
./waf install --destdir="$pkgdir"
install -d "$pkgdir"/usr/share/doc/mpv/examples
@@ -44,4 +74,5 @@
"$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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.