summaryrefslogtreecommitdiffstats
path: root/extra/chromium/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-03-26 20:43:47 +0100
committertnut <thierryn1 at hispeed dot ch>2010-03-26 20:43:47 +0100
commit057e033d4a73ac610303c98260015c7d5ecb28b7 (patch)
treebce401d73b954cdc32f79a9ca63bab6e00c2843b /extra/chromium/Pkgfile
parentf50a79d08ee34184566f3c7d9def0ea4358318e9 (diff)
parent596ca3d76703ef12aa62f4c95d4cf107592fcb1e (diff)
downloadnutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.gz
nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.bz2
nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.tar.xz
nutyx-extra-057e033d4a73ac610303c98260015c7d5ecb28b7.zip
Merge commit 'lesibel/master'
Diffstat (limited to 'extra/chromium/Pkgfile')
-rw-r--r--extra/chromium/Pkgfile80
1 files changed, 80 insertions, 0 deletions
diff --git a/extra/chromium/Pkgfile b/extra/chromium/Pkgfile
new file mode 100644
index 000000000..01a8017da
--- /dev/null
+++ b/extra/chromium/Pkgfile
@@ -0,0 +1,80 @@
+# Description: Navigateur de chez Google
+# URL: htt:p//www.google.com
+# Maintainer: NuTyX core team
+# Packager: geantbrun
+# Depends on: xz-utils, libjpeg, nss, gconf, alsa-lib, xdg-utils, hicolor-icon-theme, bzip2, libxslt, ffmpeg, p5-event, libevent, pyopenssl
+
+name=chromium
+version=5.0.342.7
+release=1
+
+source=( ftp://ftp.archlinux.org/other/chromium/chromium-$version.tar.xz
+ chromium.desktop chromium.sh drop_sse2.patch ffmpeg_branding_mime.patch libpng-1.4.patch)
+
+build() {
+ tar -xf $SRC/chromium-$version.tar.xz
+ cd $SRC/chromium-$version
+
+ export GYP_GENERATORS='make'
+ export BUILDTYPE='Release'
+ export GYP_DEFINES="gcc_version=44 \
+ no_strict_aliasing=1 \
+ linux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
+ linux_strip_binary=1 \
+ release_extra_cflags='${CFLAGS}' \
+ ffmpeg_branding=Chrome \
+ use_system_libjpeg=1 \
+ use_system_libxslt=1 \
+ use_system_bzip2=1 \
+ use_system_libpng=1 \
+ use_system_ffmpeg=1 \
+ use_system_yasm=1 \
+ use_system_libevent=1 \
+ use_system_ssl=0"
+
+ patch -p0 -i $SRC/ffmpeg_branding_mime.patch
+ # i686 does not include SSE2
+ # see http://code.google.com/p/chromium/issues/detail?id=9007
+ patch -p0 -i $SRC/drop_sse2.patch
+ # see http://codereview.chromium.org/569009/show
+ patch -p0 -i $SRC/libpng-1.4.patch
+
+ export PATH=./depot_tools/:$PATH
+ gclient.py runhooks --force
+
+ cd src
+ make chrome chrome_sandbox
+
+ cd $SRC/$name-$version
+
+ install -m 0755 -D src/out/Release/chrome \
+ $PKG/usr/lib/chromium/chromium
+ install -m 4555 -o root -g root -D src/out/Release/chrome_sandbox \
+ $PKG/usr/lib/chromium/chromium-sandbox
+ install -m 0644 -D src/out/Release/chrome.pak \
+ $PKG/usr/lib/chromium/chrome.pak
+ ln -s /usr/lib/libavcodec.so.52 $PKG/usr/lib/chromium/libavcodec.so.52
+ ln -s /usr/lib/libavformat.so.52 $PKG/usr/lib/chromium/libavformat.so.52
+ ln -s /usr/lib/libavutil.so.50 $PKG/usr/lib/chromium/libavutil.so.50
+ cp -a src/out/Release/locales src/out/Release/resources \
+ $PKG/usr/lib/chromium/
+ find $PKG/usr/lib/chromium/ -name '*.d' -type f -delete
+ install -m 0644 -D src/out/Release/chrome.1 \
+ $PKG/usr/share/man/man1/chromium.1
+
+ install -m 0644 -D $SRC/chromium.desktop \
+ $PKG/usr/share/applications/chromium.desktop
+ for size in 16 32 48 256; do
+ install -m 0644 -D \
+ src/chrome/app/theme/chromium/product_logo_${size}.png \
+ $PKG/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
+ done
+ install -m 0755 -D $SRC/chromium.sh \
+ $PKG/usr/bin/chromium
+
+ install -m 0644 -D src/LICENSE \
+ $PKG/usr/share/licenses/chromium/LICENSE
+
+
+
+}