mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-27 13:22:13 +08:00
58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
pkgname=opera-ffmpeg-codecs
|
|
pkgver=47.0.2526.80
|
|
_opver=34
|
|
pkgrel=1
|
|
pkgdesc="additional support for proprietary codecs for opera"
|
|
arch=('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=('b107148323a3b641eae29bfeda298183c0d1c110ef96a04a13f329015d614d05')
|
|
|
|
|
|
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/usr/lib/opera/lib_extra/libffmpeg.so.$_opver"
|
|
}
|