diff options
Diffstat (limited to 'network/chromium')
-rw-r--r-- | network/chromium/README | 4 | ||||
-rw-r--r-- | network/chromium/chromium.SlackBuild | 151 | ||||
-rw-r--r-- | network/chromium/chromium.desktop | 76 | ||||
-rw-r--r-- | network/chromium/chromium.info | 10 | ||||
-rw-r--r-- | network/chromium/doinst.sh | 3 | ||||
-rw-r--r-- | network/chromium/slack-desc | 19 |
6 files changed, 263 insertions, 0 deletions
diff --git a/network/chromium/README b/network/chromium/README new file mode 100644 index 0000000000..90aca91c37 --- /dev/null +++ b/network/chromium/README @@ -0,0 +1,4 @@ +Google Chromium is a browser that combines a minimal design with sophisticated +technology to make the web faster, safer, and easier. + +Dependencies: yasm, libevent, gnome-keyring diff --git a/network/chromium/chromium.SlackBuild b/network/chromium/chromium.SlackBuild new file mode 100644 index 0000000000..5afa62e1af --- /dev/null +++ b/network/chromium/chromium.SlackBuild @@ -0,0 +1,151 @@ +#!/bin/bash + +# Slackware build script for Google Chromium +# +# This is script was inspired on the one used by Arch: +# (http://repos.archlinux.org/wsvn/packages/chromium/trunk/PKGBUILD) +# +# A special thanks to Niels Horn who helped me fixing some errors on +# the script and for testing it. +# +# Copyright 2010 Yucatan "Kenjiro" Costa, Alegrete, RS, Brasil +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''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 AUTHOR 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. + +PRGNAM=chromium +VERSION=${VERSION:-7.0.544.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Configure it before compiling + +# +# Change "-Dproprietary_codecs" to "0" if you don't want to use proprietary codecs +# + +build/gyp_chromium -f make build/all.gyp --depth=. \ + -Dgcc_version=44 \ + -Dno_strict_aliasing=1 \ + -Dwerror= \ + -Dlinux_sandbox_path=/usr/lib${LIBDIRSUFFIX}/chromium/chromium-sandbox \ + -Dlinux_strip_binary=1 \ + -Dffmpeg_branding=Chrome \ + -Dproprietary_codecs=1 \ + -Duse_system_libjpeg=1 \ + -Duse_system_libxslt=0 \ + -Duse_system_libxml=0 \ + -Duse_system_bzip2=1 \ + -Duse_system_zlib=1 \ + -Duse_system_libpng=1 \ + -Duse_system_ffmpeg=0 \ + -Duse_system_yasm=1 \ + -Duse_system_libevent=1 \ + -Duse_system_ssl=0 + +# Compiling... + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make chrome chrome_sandbox BUILDTYPE=Release || exit 1 + +# Creating the package +cd out/Release/ + mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/chromium + mkdir -p $PKG/usr/bin + install -m 0755 -D chrome $PKG/usr/lib${LIBDIRSUFFIX}/chromium + install -m 4555 -o root -g root -D chrome_sandbox $PKG/usr/lib${LIBDIRSUFFIX}/chromium + install -m 0644 -D chrome.pak $PKG/usr/lib${LIBDIRSUFFIX}/chromium + install -m 0644 -D resources.pak $PKG/usr/lib${LIBDIRSUFFIX}/chromium + install -m 0755 -D libffmpegsumo.so $PKG/usr/lib${LIBDIRSUFFIX}/chromium + cp -a locales/ $PKG/usr/lib${LIBDIRSUFFIX}/chromium + find $PKG -name '*.d' -type f -delete + + mkdir -p $PKG/usr/man/man1 + install -m 0644 -D chrome.1 $PKG/usr/man/man1/ + mkdir -p $PKG/usr/share/pixmaps + cp product_logo_48.png $PKG/usr/share/pixmaps/chromium.png + mkdir -p $PKG/usr/share/applications + cp $CWD/chromium.desktop $PKG/usr/share/applications + +cd ../../ +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS LICENSE \ + $PKG/usr/doc/$PRGNAM-$VERSION/ + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +cd $PKG + ln -s /usr/lib${LIBDIRSUFFIX}/chromium/chrome $PKG/usr/bin/chrome + ln -s /usr/lib${LIBDIRSUFFIX}/chromium/chrome_sandbox $PKG/usr/bin/chrome_sandbox + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/chromium/chromium.desktop b/network/chromium/chromium.desktop new file mode 100644 index 0000000000..c3de9791df --- /dev/null +++ b/network/chromium/chromium.desktop @@ -0,0 +1,76 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/usr/bin/chrome --enable-plugins %U +Icon=/usr/share/pixmaps/chromium.png +Type=Application +Categories=Application;Network; +Name=Chromium +GenericName=Web Browser +GenericName[af]=Web Blaaier +GenericName[ar]=متصفح ويب +GenericName[az]=Veb Səyyahı +GenericName[bg]=Браузър +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[br]=Furcher ar Gwiad +GenericName[bs]=WWW Preglednik +GenericName[ca]=Fullejador web +GenericName[cs]=WWW prohlížeč +GenericName[cy]=Porydd Gwe +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής Ιστού +GenericName[eo]=TTT-legilo +GenericName[es]=Navegador web +GenericName[et]=Veebilehitseja +GenericName[eu]=Web arakatzailea +GenericName[fa]=مرورگر وب +GenericName[fi]=WWW-selain +GenericName[fo]=Alnótsfar +GenericName[fr]=Navigateur web +GenericName[gl]=Navegador Web +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hr]=Web preglednik +GenericName[hu]=Webböngésző +GenericName[is]=Vafri +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[ko]=웹 브라우저 +GenericName[lo]=ເວັບບຣາວເຊີ +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Web Pārlūks +GenericName[mk]=Прелистувач на Интернет +GenericName[mn]=Веб-Хөтөч +GenericName[nb]=Nettleser +GenericName[nds]=Nettkieker +GenericName[nl]=Webbrowser +GenericName[nn]=Nettlesar +GenericName[nso]=Seinyakisi sa Web +GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador Web +GenericName[ro]=Navigator de web +GenericName[ru]=Веб-браузер +GenericName[se]=Fierpmádatlogan +GenericName[sk]=Webový prehliadač +GenericName[sl]=Spletni brskalnik +GenericName[sr]=Веб претраживач +GenericName[sr@Latn]=Veb pretraživač +GenericName[ss]=Ibrawuza yeWeb +GenericName[sv]=Webbläsare +GenericName[ta]=வலை உலாவி +GenericName[tg]=Тафсиргари вэб +GenericName[th]=เว็บบราวเซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[uz]=Веб-браузер +GenericName[ven]=Buronza ya Webu +GenericName[vi]=Trình duyệt Web +GenericName[wa]=Betchteu waibe +GenericName[xh]=Umkhangeli zincwadi we Web +GenericName[zh_CN]=网页浏览器 +GenericName[zh_TW]=網頁瀏覽器 +GenericName[zu]=Umcingi we-Web +MimeType=text/html +X-KDE-StartupNotify=true diff --git a/network/chromium/chromium.info b/network/chromium/chromium.info new file mode 100644 index 0000000000..223b784d6e --- /dev/null +++ b/network/chromium/chromium.info @@ -0,0 +1,10 @@ +PRGNAM="chromium" +VERSION="7.0.544.0" +HOMEPAGE="http://www.chromium.org/" +DOWNLOAD="http://build.chromium.org/buildbot/official/chromium-7.0.544.0.tar.bz2" +MD5SUM="94fe6b95fd755bbbfc22935eccaa9341" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Yucatan Costa" +EMAIL="jedi.kenjiro@gmail.com" +APPROVED="Erik Hanson" diff --git a/network/chromium/doinst.sh b/network/chromium/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/network/chromium/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/network/chromium/slack-desc b/network/chromium/slack-desc new file mode 100644 index 0000000000..296f7c031e --- /dev/null +++ b/network/chromium/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler----------------------------------------------------| +chromium: Google Chromium (Open Source Web Browser) +chromium: +chromium: Google Chromium is a browser that combines a minimal design with +chromium: sophisticated technology to make the web faster, safer, and easier. +chromium: +chromium: +chromium: +chromium: +chromium: +chromium: +chromium: |