From 38622f603c20785896ef4b4efff83ede259d4e6d Mon Sep 17 00:00:00 2001
From: Alessio Sergi <al3hex@gmail.com>
Date: Mon, 29 Sep 2014 20:14:15 +0200
Subject: [PATCH] x264: update to 20140928 stable snapshot (soname bump)

---
 common/shlibs         |  2 +-
 srcpkgs/x264/template | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/common/shlibs b/common/shlibs
index cc4b348982..f762257307 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -392,7 +392,7 @@ libavutil.so.54 libavutil-2.4.1_1
 libavfilter.so.5 libavfilter-2.4.1_1
 libSDL-1.2.so.0 SDL-1.2.14_1
 libSDL_image-1.2.so.0 SDL_image-1.2.10_1
-libx264.so.136 x264-20131007_1
+libx264.so.142 x264-20140928.2245_1
 libxvidcore.so.4 xvidcore-1.2.2_1
 libtag.so.1 taglib-1.6.1_1
 libtag_c.so.0 taglib-1.6.1_1
diff --git a/srcpkgs/x264/template b/srcpkgs/x264/template
index 91cdde3bda..f1997ee8eb 100644
--- a/srcpkgs/x264/template
+++ b/srcpkgs/x264/template
@@ -1,9 +1,9 @@
 # Template file for 'x264'
 pkgname=x264
-_snap_date=20131007
+_snap_date=20140928
 _snap_rev=2245
 version="${_snap_date}.${_snap_rev}"
-revision=3
+revision=1
 wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
 hostmakedepends="yasm"
 short_desc="Free library for encoding H264/AVC video streams"
@@ -11,7 +11,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
 homepage="http://www.videolan.org/developers/x264.html"
 license="GPL-2"
 distfiles="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
-checksum=15267912eef265d974f41f4ea09795503adc26dc190a2d437799ca043bb8e2b4
+checksum=2c30a479989c9bc98629a49208505e9c99c81e3f4b7b0fbd087dfb5395b872df
 
 do_configure() {
 	if [ "$XBPS_TARGET_MACHINE" != "i686" -o "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
@@ -32,11 +32,11 @@ do_install() {
 	make DESTDIR=${DESTDIR} \
 		bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install
 	# Set version as x.x.0 in pkg-config file.
-	sed -i -e "s|0.136.x|0.136.0|" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
+	sed -i -e "s|0.142.x|0.142.0|" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
 }
 
 x264-devel_package() {
-	depends="x264>=${version}"
+	depends="${sourcepkg}>=${version}_${revision}"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include