# $Id:$ # Original: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com) # Contributor: spiderschwoin (eikemail-arch AT yahoo.de) # Maintainer: spiderschwoin (eikemail-arch AT yahoo.de) pkgname=chromium-dev-codecs-ffmpeg-nonfree-bin _pkgname=chromium-codecs-ffmpeg-extra _pkgver1=11.0.693.0 _pkgver2=svn20110305r77055 _pkgsuf=0ubuntu1~ucd1~maverick pkgver=${_pkgver1} pkgrel=1 pkgdesc="Extra ffmpeg codecs for 'chromium-dev' (View/Watch HTML5 videos)" arch=('i686' 'x86_64') url=https://launchpad.net/chromium-browser/ license=('GPL' 'LGPL' 'custom') depends=('chromium-dev' 'libvpx') replaces=('chromium-codecs-ffmpeg-extra-ppa') install=${pkgname}.install _tgtdir=/usr/lib/ _gogdir=chromium-dev _gogdir2=chromium-browser case "$CARCH" in i686|i[3-5]86) _bldarch='i386' md5sums=('47d9bc4bf60d0d7a53b1d68293c9197185458572');; x86_64|amd64) _bldarch='amd64' md5sums=('ab5b44c6606ce7261962b407990de50d');; # The following should not happen; provided you're using 'makepkg' ;) *) error "Unknown or invalid CARCH=$CARCH"; exit 1 esac _pkgname=chromium-codecs-ffmpeg-extra _url=http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser source=(${_url}/${_pkgname}_${_pkgver1}~${_pkgver2}-${_pkgsuf}_${_bldarch}.deb) build() { msg2 "Extracting files..." cd ${srcdir} ar x ${_pkgname}_${_pkgver1}~${_pkgver2}-${_pkgsuf}_${_bldarch}.deb tar xf data.tar.lzma mkdir -p ${pkgdir}/${_tgtdir}/${_gogdir} cp -d ${srcdir}/usr/lib/${_gogdir2}/lib* ${pkgdir}/${_tgtdir}/${_gogdir} touch mv ${pkgdir}/${_tgtdir}/${_gogdir}/libffmpegsumo.so ${pkgdir}/${_tgtdir}/${_gogdir}/libffmpegsumo.so.NONFREE msg2 "Making it nice..." #install -Dm644 ${srcdir}/usr/share/doc/${_pkgname}/copyright #${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt install -dm755 ${pkgdir}/usr/share/licenses/${pkgname} cat <> ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt This package was created by Fabien Tassin on Wed, 29 Jul 2009 21:04:32 +0200 The sources were downloaded from the Chromium repositories in 3 parts: 1/ ffmpeg-mt.tar.gz and patches/* from http://src.chromium.org/svn/trunk/deps/third_party/ffmpeg/ 2/ src/{ffmpeg.gyp,README.chromium,source/*} from http://src.chromium.org/svn/trunk/src/third_party/ffmpeg/ 3/ src/build/* from http://src.chromium.org/svn/trunk/src/build/ Copyrights ====== Files: debian/* Copyright: 2009, Fabien Tassin License: LGPL v2.1+ Files: src/build/* src/{ffmpeg.gyp,README.chromium,source/*} Copyright: 2009 The Chromium Authors License: BSD-style license Files: patches/* Copyright: 2009, the patch authors License: Same as patched sources (below) Files: ffmpeg-mt.tar.gz copy of the unpacked ffmpeg-mt/LICENSE: # Most files in FFmpeg are under the GNU Lesser General Public License version 2.1 # or later (LGPL v2.1+). Read the file COPYING.LGPL for details. Some other files # have a MIT/X11/BSD-style license. In combination the LGPL v2.1+ applies to # FFmpeg. # # Some optional parts of FFmpeg are licensed under the GNU General Public License # version 2 or later (GPL v2+). See the file COPYING.GPL for details. None of # these parts are used by default, you have to explicitly pass --enable-gpl to # configure to activate them. In this case, FFmpeg's license changes to GPL v2+. # # Specifically, the GPL parts of FFmpeg are # # - libpostproc # - some x86 optimizations in libswscale # - optional x86 optimizations in the files # libavcodec/x86/h264_deblock_sse2.asm # libavcodec/x86/h264_idct_sse2.asm # libavcodec/x86/idct_mmx.c # - the AC-3 decoder in libavcodec/ac3dec.c # - the X11 grabber in libavdevice/x11grab.c # # Some external libraries, e.g. libx264, are under GPL and can be used in # conjunction with FFmpeg. They require --enable-gpl to be passed to configure # as well. # # The nonfree external libraries libamrnb, libamrwb and libfaac can be hooked up # in FFmpeg. You need to pass --enable-nonfree to configure to enable them. Employ # this option with care as FFmpeg then becomes nonfree and unredistributable. # Note that libfaac claims to be LGPL, but is not. # # There are a handful of files under other licensing terms, namely: # # * The files libavcodec/jfdctfst.c, libavcodec/jfdctint.c, libavcodec/jrevdct.c # are taken from libjpeg, see the top of the files for licensing details. The code actually built (see src/ffmpeg.gyp) is LGPL v2.1+ with the following exceptions: Files: source/patched-ffmpeg-mt/libavcodec/arm/jrevdct_arm.S Copyright: 2001 Lionel Ulmer (lionel.ulmer@free.fr / bbrox@bbrox.org) License: MIT Files: source/patched-ffmpeg-mt/libavcodec/jrevdct.c Copyright: 1991, 1992, Thomas G. Lane License: jpeg license (see below), GPL (v2 or later) compatible Files: source/patched-ffmpeg-mt/libavcodec/x86/vc1dsp_mmx.c Copyright: 2007 Christophe GISQUET License: MIT source/patched-ffmpeg-mt/libavformat/{oggdec.c,oggparseogm.c,oggparsetheora.c,oggparsevorbis.c} Copyright: 2005 Michael Ahlberg, Måns Rullgård License: MIT Here is the text of the MIT license: | Permission is hereby granted, free of charge, to any person obtaining a copy | of this software and associated documentation files (the "Software"), to deal | in the Software without restriction, including without limitation the rights | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | copies of the Software, and to permit persons to whom the Software is | furnished to do so, subject to the following conditions: | The above copyright notice and this permission notice shall be included in | all copies or substantial portions of the Software. | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Here is the text of the Chromium BSD-style license: | Redistribution and use in source and binary forms, with or without | modification, are permitted provided that the following conditions are | met: | . | * Redistributions of source code must retain the above copyright | notice, this list of conditions and the following disclaimer. | * Redistributions in binary form must reproduce the above | copyright notice, this list of conditions and the following disclaimer | in the documentation and/or other materials provided with the | distribution. | * Neither the name of Google Inc. nor the names of its | contributors may be used to endorse or promote products derived from | this software without specific prior written permission. | . | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Here is the text of the JPEG license: | The authors make NO WARRANTY or representation, either express or implied, | with respect to this software, its quality, accuracy, merchantability, or | fitness for a particular purpose. This software is provided "AS IS", and | you, its user, assume the entire risk as to its quality and accuracy. | | This software is copyright (C) 1991, 1992, Thomas G. Lane. | All Rights Reserved except as specified below. | | Permission is hereby granted to use, copy, modify, and distribute this | software (or portions thereof) for any purpose, without fee, subject to | these conditions: | (1) If any part of the source code for this software is distributed, then | this README file must be included, with this copyright and no-warranty | notice unaltered; and any additions, deletions, or changes to the original | files must be clearly indicated in accompanying documentation. | (2) If only executable code is distributed, then the accompanying | documentation must state that "this software is based in part on the work | of the Independent JPEG Group". | (3) Permission for use of this software is granted only if the user accepts | full responsibility for any undesirable consequences; the authors accept | NO LIABILITY for damages of any kind. | | These conditions apply to any software derived from or based on the IJG | code, not just to the unmodified library. If you use our work, you ought | to acknowledge us. | | Permission is NOT granted for the use of any IJG author's name or company | name in advertising or publicity relating to this software or products | derived from it. This software may be referred to only as "the Independent | JPEG Group's software". | | We specifically permit and encourage the use of this software as the basis | of commercial products, provided that all warranty or liability claims are | assumed by the product vendor. The rest of the code is licensed under the GNU LGPL: | This library is free software; you can redistribute it and/or | modify it under the terms of the GNU Lesser General Public License as | published by the Free Software Foundation; either version 2.1 of | the License, or (at your option) any later version. | | This library is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | Lesser General Public License for more details. | | You should have received a copy of the GNU General Public License | along with this program; if not, write to the Free Software | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' and the text of the GNU Lesser General Public License is in `/usr/share/common-licenses/LGPL'. On ArchLinux machines, a complete text of the GNU General Public License can be found in '/usr/share/licenses/common/GPL' and a text of the GNU Lesser General Public License is in '/usr/share/licenses/common/LGPL' ;) EOT }