Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2013 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6095964 to your computer and use it in GitHub Desktop.
Save anonymous/6095964 to your computer and use it in GitHub Desktop.
Pkgfile
# Description: Open source version of Google Chrome web browser.
# URL: http://chromium.org/
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Tadeusz Sosnierz, tadzikes gmail com
# Depends on: dbus-glib gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher
name=chromium
version=28.0.1500.11
release=1
source=(http://commondatastorage.googleapis.com/chromium-browser-official/$name-$version.tar.xz \
$name.sh)
build() {
cd $name-$version
find third_party/WebKit/Source ui/base/ime \
-type f -exec sed -e 's|<glib/.*\.h>|<glib.h>|g' -i {} \;
export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
build/gyp_chromium -f make build/all.gyp --depth=. \
-Dno_strict_aliasing=1 \
-Dwerror= \
-Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
-Dlinux_strip_binary=1 \
-Drelease_extra_cflags="$CFLAGS" \
-Dproprietary_codecs=1 \
-Dffmpeg_branding=Chrome \
-Duse_system_libjpeg=1 \
-Duse_system_libxslt=1 \
-Duse_system_libxml=1 \
-Duse_system_bzip2=1 \
-Duse_system_zlib=0 \
-Duse_system_libpng=0 \
-Duse_system_ffmpeg=0 \
-Duse_system_yasm=1 \
-Duse_system_libevent=1 \
-Duse_system_sqlite=0 \
-Duse_system_ssl=0 \
-Dremove_webcore_debug_symbols=1 \
-Duse_gconf=0 \
-Duse_cups=0 \
-Duse_gnome_keyring=0 \
-Duse_kerberos=0 \
-Duse_pulseaudio=0 \
-Dlinux_link_gnome_keyring=0 \
-Dlinux_link_libpci=1 \
-Dlinux_link_libspeechd=1 \
-Dlibspeechd_h_prefix=speech-dispatcher/ \
-Denable_webrtc=1 \
-Ddisable_nacl=1
make chrome chrome_sandbox BUILDTYPE=Release
install -m 0755 -D out/Release/chrome $PKG/usr/lib/chromium/chromium
install -m 4555 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/chromium/chromium-sandbox
install -m 0644 -D out/Release/*.pak $PKG/usr/lib/chromium
install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/chromium
install -d $PKG/usr/lib/chromium/locales
install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/chromium/locales
cp -a out/Release/resources $PKG/usr/lib/chromium
install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/chromium.1
for size in 22 24 48 128 256; do
install -m 0644 -D 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment