[arch-commits] Commit in mpv/trunk (0001-mpv-lua52.patch PKGBUILD)

Christian Hesse eworm at archlinux.org
Mon May 4 18:16:18 UTC 2015


    Date: Monday, May 4, 2015 @ 20:16:18
  Author: eworm
Revision: 132750

rebuild for lua52 package

Upstream did not port to lua 5.3 and refuses it since commit 9b59c175
("lua: reject Lua 5.3"). So we build against lua52.

Added:
  mpv/trunk/0001-mpv-lua52.patch
Modified:
  mpv/trunk/PKGBUILD

----------------------+
 0001-mpv-lua52.patch |   13 +++++++++++++
 PKGBUILD             |   14 +++++++++-----
 2 files changed, 22 insertions(+), 5 deletions(-)

Added: 0001-mpv-lua52.patch
===================================================================
--- 0001-mpv-lua52.patch	                        (rev 0)
+++ 0001-mpv-lua52.patch	2015-05-04 18:16:18 UTC (rev 132750)
@@ -0,0 +1,13 @@
+diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
+index 97c65e3..de38fc5 100644
+--- a/waftools/checks/custom.py
++++ b/waftools/checks/custom.py
+@@ -54,7 +54,7 @@ def check_lua(ctx, dependency_identifier):
+         ( '51',     'lua >= 5.1.0 lua < 5.2.0'),
+         ( '51deb',  'lua5.1 >= 5.1.0'), # debian
+         ( '51fbsd', 'lua-5.1 >= 5.1.0'), # FreeBSD
+-        ( '52',     'lua >= 5.2.0 lua < 5.3.0' ),
++        ( '52',     'lua52 >= 5.2.0 lua52 < 5.3.0' ),
+         ( '52deb',  'lua5.2 >= 5.2.0'), # debian
+         ( '52fbsd', 'lua-5.2 >= 5.2.0'), # FreeBSD
+         ( 'luajit', 'luajit >= 2.0.0' ),

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-05-04 17:57:04 UTC (rev 132749)
+++ PKGBUILD	2015-05-04 18:16:18 UTC (rev 132750)
@@ -1,10 +1,11 @@
 # $Id$
-# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 # Contributor: Eivind Uggedal <eivind at uggedal.com>
 
 pkgname=mpv
 pkgver=0.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Video player based on MPlayer/mplayer2'
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -12,7 +13,7 @@
 depends=(
   'ffmpeg' 'lcms2' 'libcdio-paranoia' 'libgl' 'enca'
   'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'wayland'
-  'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua' 'libdvdnav'
+  'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav'
   'libguess' 'libxrandr' 'jack' 'smbclient' 'rubberband'
 )
 makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper')
@@ -19,11 +20,14 @@
 optdepends=('youtube-dl: for video-sharing websites playback')
 options=('!emptydirs' '!buildflags')
 install=mpv.install
-source=($pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz)
-md5sums=('c766cf3d6a7eb82a74564c47fa14d4a5')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
+  '0001-mpv-lua52.patch')
+md5sums=('c766cf3d6a7eb82a74564c47fa14d4a5'
+  'cb4fdc39561bf11fefd2b93769c91fec')
 
 prepare() {
   cd $pkgname-$pkgver
+  patch -Np1 < $srcdir/0001-mpv-lua52.patch
   ./bootstrap.py
 }
 



More information about the arch-commits mailing list