summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlackEagle2015-11-19 16:42:03 +0100
committerBlackEagle2015-11-19 16:42:03 +0100
commit5babcd9c44bf9779987d92e574d8545e945837c0 (patch)
tree45e3b310b690d42f86eedcf63fe0f5481a4699d8
downloadaur-5babcd9c44bf9779987d92e574d8545e945837c0.tar.gz
vivaldi-snapshot-ffmpeg-codecs :: 47.0.2526.59-1
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD60
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3669b339447
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = vivaldi-snapshot-ffmpeg-codecs
+ pkgdesc = additional support for proprietary codecs for vivaldi
+ pkgver = 47.0.2526.59
+ pkgrel = 1
+ url = https://ffmpeg.org/
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = gtk2
+ makedepends = libexif
+ makedepends = libpulse
+ makedepends = libxss
+ makedepends = ninja
+ makedepends = nss
+ makedepends = pciutils
+ makedepends = python2
+ makedepends = xdg-utils
+ depends = glibc
+ options = !strip
+ source = https://commondatastorage.googleapis.com/chromium-browser-official/chromium-47.0.2526.59.tar.xz
+ sha256sums = 9c4daaffe770d400f92aeccca5a6d593e84e7290793474a1c11b0b0732bd7d62
+
+pkgname = vivaldi-snapshot-ffmpeg-codecs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..554da22132d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >
+
+pkgname=vivaldi-snapshot-ffmpeg-codecs
+pkgver=47.0.2526.59
+pkgrel=1
+pkgdesc="additional support for proprietary codecs for vivaldi"
+arch=('i686' 'x86_64')
+url="https://ffmpeg.org/"
+license=('LGPL2.1')
+depends=('glibc')
+makedepends=(
+ 'gtk2' 'libexif' 'libpulse' 'libxss' 'ninja' 'nss' 'pciutils' 'python2'
+ 'xdg-utils'
+)
+options=('!strip')
+source=(
+ "https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz"
+)
+sha256sums=('9c4daaffe770d400f92aeccca5a6d593e84e7290793474a1c11b0b0732bd7d62')
+
+
+prepare() {
+ cd "$srcdir/chromium-$pkgver"
+
+ # Use Python 2
+ find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} +
+ # There are still a lot of relative calls which need a workaround
+ [[ -d "$srcdir/python2-path" ]] && rm -rf "$srcdir/python2-path"
+ mkdir "$srcdir/python2-path"
+ ln -s /usr/bin/python2 "$srcdir/python2-path/python"
+
+ # chromium 46 gives an error about a missing file
+ # workaround create empty
+ touch chrome/test/data/webui/i18n_process_css_test.html
+}
+
+build() {
+ cd "$srcdir/chromium-$pkgver"
+
+ export PATH="$srcdir/python2-path:$PATH"
+
+ build/gyp_chromium \
+ --depth=. \
+ -Dclang=0 \
+ -Duse_gnome_keyring=0 \
+ -Duse_gconf=0 \
+ -Dcomponent=shared_library \
+ -Dffmpeg_branding=ChromeOS
+
+ ninja -C out/Release ffmpeg
+}
+
+package() {
+ cd "$srcdir/chromium-$pkgver"
+
+ install -Dm644 out/Release/lib/libffmpeg.so \
+ "$pkgdir/opt/vivaldi-snapshot/libffmpeg.so"
+}
+
+# vim:set ts=2 sw=2 et: