From be00341822f641f97e5d5aa229068f5c32d5e1a3 Mon Sep 17 00:00:00 2001
From: Cecil <knoppmyth@gmail.com>
Date: Sat, 19 Feb 2011 15:27:25 -0800
Subject: flashplugin:bumped to latest

---
 abs/extra/community/flashplugin/PKGBUILD           | 35 +++++++----
 abs/extra/community/flashplugin/__changelog        |  2 +
 .../community/flashplugin/flashplugin.install      | 13 ++++
 abs/extra/community/flashplugin/mms.cfg            | 70 ++++++++++++++++++++++
 4 files changed, 107 insertions(+), 13 deletions(-)
 create mode 100644 abs/extra/community/flashplugin/__changelog
 create mode 100644 abs/extra/community/flashplugin/flashplugin.install
 create mode 100644 abs/extra/community/flashplugin/mms.cfg

diff --git a/abs/extra/community/flashplugin/PKGBUILD b/abs/extra/community/flashplugin/PKGBUILD
index 7d7e65f..c239c7f 100644
--- a/abs/extra/community/flashplugin/PKGBUILD
+++ b/abs/extra/community/flashplugin/PKGBUILD
@@ -1,27 +1,36 @@
-# $Id: PKGBUILD 60911 2009-12-09 11:51:09Z andrea $
+# $Id$
 # Contributor: Andrea Scarpino <andrea@archlinux.org>
 
 pkgname=flashplugin
 _licensefile='Reader_Player_AIR_WWEULA-Combined-20080204_1313.pdf'
-pkgver=10.1.53.64
-pkgrel=1
+pkgver=10.2.152.27
+_pkgver64=10.0.45.2
+pkgrel=3
 pkgdesc='Adobe Flash Player'
 url='http://get.adobe.com/flashplayer'
-arch=('i686' 'x86_64')
+arch=('i686') # 'x86_64')
 depends=('mozilla-common' 'libxt' 'gtk2' 'nss' 'curl')
+optdepends=('libvdpau: GPU acceleration on Nvidia card')
 replaces=('flashplugin-beta')
 provides=('flashplayer')
 license=('custom')
+options=(!strip)
+install=flashplugin.install
+backup=(etc/adobe/mms.cfg)
 source=('http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz'
-        "http://www.adobe.com/products/eulas/pdfs/${_licensefile}")
-[ "${CARCH}" = "x86_64" ] && source[0]="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${pkgver}.linux-${CARCH}.so.tar.gz"
-[ "${CARCH}" = "x86_64" ] && md5sums[0]='8b427c2991c0447af56a951c653ee383'
+        "http://www.adobe.com/products/eulas/pdfs/${_licensefile}"
+         mms.cfg)
+#[ "${CARCH}" = "x86_64" ] && source[0]="http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-${_pkgver64}.linux-${CARCH}.so.tar.gz"
+#[ "${CARCH}" = "x86_64" ] && md5sums[0]='4a4561e456612a6751653b58342d53df'
 
 build() {
-  install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
-  install -m755 ${srcdir}/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/ || return 1
-  install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
-  install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.pdf || return 1
+  install -d -m755 ${pkgdir}/usr/lib/mozilla/plugins/
+  install -d -m755 ${pkgdir}/usr/share/licenses/${pkgname}/
+  install -d -m755 ${pkgdir}/etc/adobe
+  install -m755 ${srcdir}/install_flash_player_10_linux/libflashplayer.so ${pkgdir}/usr/lib/mozilla/plugins/
+  install -m644 "${_licensefile}" ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.pdf
+  install -m644 ${srcdir}/mms.cfg ${pkgdir}/etc/adobe/mms.cfg
 }
-md5sums=('e4cb4d26124605a54c3d498cc440368f'
-         '1636037610ee2aa35c5fb736a697b7e0')
+md5sums=('afab0b40b0ae11445e2e90a4a9224a8a'
+         '1636037610ee2aa35c5fb736a697b7e0'
+         '50d6013971aba485c337c44c402fd3e1')
diff --git a/abs/extra/community/flashplugin/__changelog b/abs/extra/community/flashplugin/__changelog
new file mode 100644
index 0000000..514d92d
--- /dev/null
+++ b/abs/extra/community/flashplugin/__changelog
@@ -0,0 +1,2 @@
+2/18/11 - chw - Correct path for libflashplugin.so (didn't have install_flash_player_10_linx dir).
+
diff --git a/abs/extra/community/flashplugin/flashplugin.install b/abs/extra/community/flashplugin/flashplugin.install
new file mode 100644
index 0000000..0cc1e2f
--- /dev/null
+++ b/abs/extra/community/flashplugin/flashplugin.install
@@ -0,0 +1,13 @@
+post_install() {
+    echo " >> "
+    echo " >> If you have an NVIDIA card that supports libvdpau or Broadcom Crystal HD chips,"
+    echo " >> uncomment EnableLinuxHWVideoDecode=1 from /etc/adobe/mms.cfg."
+    echo " >> If you run into problems, please contact nVidia or Broadcom along with your system config info / driver version."
+    echo " >> "
+}
+
+post_upgrade() {
+    if  [ "$(vercmp $2 10.2.152.27-2)" -lt 0 ]; then
+        post_install $1
+    fi
+}
diff --git a/abs/extra/community/flashplugin/mms.cfg b/abs/extra/community/flashplugin/mms.cfg
new file mode 100644
index 0000000..828114b
--- /dev/null
+++ b/abs/extra/community/flashplugin/mms.cfg
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
+<head>
+<title>svntogit/packages.git - Git clone of the 'packages' subversion repository</title>
+<meta name='generator' content='cgit v0.8.3.4-124-ge7dc'/>
+<meta name='robots' content='index, nofollow'/>
+<link rel='stylesheet' type='text/css' href='/cgit.css'/>
+<link rel='alternate' title='Atom feed' href='http://projects.archlinux.org/svntogit/packages.git/atom/flashplugin/repos/extra-i686/mms.cfg?h=master' type='application/atom+xml'/>
+<link rel="stylesheet" href="/archnavbar.css" />
+<link rel="icon" href="/favicon.ico" type="image/x-icon" />
+<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+</head>
+<body>
+	<div id="archnavbar"><!-- Arch Linux global navigation bar -->
+		<div id="archnavbarlogo">
+			<p><a href="http://www.archlinux.org/" title="Arch news, packages, projects and more"></a></p>
+		</div>
+		<div id="archnavbarmenu">
+			<ul id="archnavbarlist">
+				<li id="anb-home"><a href="http://www.archlinux.org/" title="Arch news, packages, projects and more">Home</a></li>
+				<li id="anb-packages"><a href="http://www.archlinux.org/packages/" title="Arch Package Database">Packages</a></li>
+				<li id="anb-forums"><a href="http://bbs.archlinux.org/" title="Community forums">Forums</a></li>
+				<li id="anb-wiki"><a href="http://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
+				<li id="anb-bugs"><a href="http://bugs.archlinux.org/" title="Report and follow bugs">Bugs</a></li>
+				<li id="anb-aur"><a href="http://aur.archlinux.org/" title="Arch Linux User Repository">AUR</a></li>
+				<li id="anb-download"><a href="http://www.archlinux.org/download/" title="Get Arch Linux">Download</a></li>
+			</ul>
+		</div>
+	</div><!-- #archnavbar -->
+<div id='cgit'><table id='header'>
+<tr>
+<td class='main'><a href='/'>index</a> : <a title='svntogit/packages.git' href='/svntogit/packages.git/'>svntogit/packages.git</a></td><td class='form'><form method='get' action=''>
+<select name='h' onchange='this.form.submit();'>
+<option value='master' selected='selected'>master</option>
+</select> <input type='submit' name='' value='switch'/></form></td></tr>
+<tr><td class='sub'>Git clone of the 'packages' subversion repository</td><td class='sub right'>Arch Linux Developers</td></tr></table>
+<table class='tabs'><tr><td>
+<a href='/svntogit/packages.git/'>summary</a><a href='/svntogit/packages.git/refs/'>refs</a><a href='/svntogit/packages.git/log/flashplugin/repos/extra-i686/mms.cfg'>log</a><a class='active' href='/svntogit/packages.git/tree/flashplugin/repos/extra-i686/mms.cfg'>tree</a><a href='/svntogit/packages.git/commit/flashplugin/repos/extra-i686/mms.cfg'>commit</a><a href='/svntogit/packages.git/diff/flashplugin/repos/extra-i686/mms.cfg'>diff</a><a href='/svntogit/packages.git/stats/flashplugin/repos/extra-i686/mms.cfg'>stats</a></td><td class='form'><form class='right' method='get' action='/svntogit/packages.git/log/flashplugin/repos/extra-i686/mms.cfg'>
+<select name='qt'>
+<option value='grep'>log msg</option>
+<option value='author'>author</option>
+<option value='committer'>committer</option>
+<option value='range'>range</option>
+</select>
+<input class='txt' type='text' size='10' name='q' value=''/>
+<input type='submit' value='search'/>
+</form>
+</td></tr></table>
+<div class='path'>path: <a href='/svntogit/packages.git/tree/'>root</a>/<a href='/svntogit/packages.git/tree/flashplugin'>flashplugin</a>/<a href='/svntogit/packages.git/tree/flashplugin/repos'>repos</a>/<a href='/svntogit/packages.git/tree/flashplugin/repos/extra-i686'>extra-i686</a>/<a href='/svntogit/packages.git/tree/flashplugin/repos/extra-i686/mms.cfg'>mms.cfg</a></div><div class='content'>blob: 716525dd08ad4debd9d5945baa806b1732d28b11 (<a href='/svntogit/packages.git/plain/flashplugin/repos/extra-i686/mms.cfg'>plain</a>)
+<table summary='blob content' class='blob'>
+<tr><td class='linenumbers'><pre><a class='no' id='n1' name='n1' href='#n1'>1</a>
+<a class='no' id='n2' name='n2' href='#n2'>2</a>
+</pre></td>
+<td class='lines'><pre><code>#Hardware video decoding
+#EnableLinuxHWVideoDecode=1
+</code></pre></td></tr></table>
+</div> <!-- class=content -->
+</div>
+<div class="foot" style="padding-left:1em;padding-right:1em;">
+<p>Copyright &copy; 2002-2010 <a href="mailto:jvinet@zeroflux.org"
+title="contact Judd Vinet">Judd Vinet</a> and <a href="mailto:aaron@archlinux.org"
+title="contact Aaron Griffin">Aaron Griffin</a>. The Arch Linux name and logo
+are recognized trademarks. Some rights reserved. The registered trademark
+Linux&copy; is used pursuant to a sublicense from LMI, the exclusive licensee
+of Linus Torvalds, owner of the mark on a world-wide basis.</p>
+</div>
+</div> <!-- id=cgit -->
+</body>
+</html>
-- 
cgit v0.12

