CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
chromium: updated to 52.0.2743.82
[ports/opt-arm.git] / chromium / Pkgfile
index 8e92f0d0e4e869157daefac4c6e18d1347c063f1..bb3194caf67a414ac348e4752073b051bd2d5c0e 100644 (file)
@@ -3,10 +3,11 @@
 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # 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 xorg-libxt gperf speech-dispatcher
+# Depends on: ninja dbus-glib gtk libevent nss xorg-libxscrnsaver xorg-libxtst libgcrypt xorg-libxdamage yasm xorg-libxt gperf speech-dispatcher libdrm libexif pciutils
 
 name=chromium
-version=42.0.2311.135
+version=52.0.2743.82
+
 release=1
 source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$version.tar.xz \
         $name.sh $name.desktop)
@@ -14,7 +15,9 @@ source=(http://commondatastorage.googleapis.com/$name-browser-official/$name-$ve
 build() {
   cd $name-$version
 
-  export CFLAGS="$CFLAGS $(pkg-config --cflags nspr)"
+       touch chrome/test/data/webui/i18n_process_css_test.html
+
+  export CFLAGS="$CFLAGS $(pkg-config --cflags nspr) -lpthread"
   export LDFLAGS="$LDFLAGS $(pkg-config --libs nspr)"
 
   # determine some flags depending on SOC
@@ -60,6 +63,7 @@ build() {
         -Duse_system_libevent=1 \
         -Duse_system_sqlite=0 \
         -Duse_system_ssl=0 \
+        -Duse_system_icu=0 \
         -Dremove_webcore_debug_symbols=1 \
         -Duse_gconf=0 \
         -Duse_cups=0 \
@@ -71,18 +75,17 @@ build() {
         -Dlinux_link_libspeechd=1 \
         -Denable_webrtc=1 \
         -Ddisable_nacl=1 \
-        -Dicu_use_data_file_flag=0
+        -Dicu_use_data_file_flag=1
 
   ninja -C out/Release chrome chrome_sandbox
 
   install -m 0755 -D out/Release/chrome $PKG/usr/lib/$name/$name
   install -m 4755 -o root -g root -D out/Release/chrome_sandbox $PKG/usr/lib/$name/chrome-sandbox
   install -m 0644 -D out/Release/*.pak $PKG/usr/lib/$name
-  install -m 0755 -D out/Release/libffmpegsumo.so $PKG/usr/lib/$name
   install -d $PKG/usr/lib/$name/locales
   install -m 0644 out/Release/locales/en-US.pak $PKG/usr/lib/$name/locales
   cp -a out/Release/resources $PKG/usr/lib/$name
-  install -m 0644 -D out/Release/chrome.1 $PKG/usr/man/man1/$name.1
+  install -m 0644 -D out/Release/chrome.1 $PKG/usr/share/man/man1/$name.1
 
   # fix v8 natives
   cp -a out/Release/{natives,snapshot}_blob.bin $PKG/usr/lib/$name
@@ -92,6 +95,9 @@ build() {
       $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$name.png
   done
 
+  # fix icu installation
+  cp -a out/Release/icudtl.dat $PKG/usr/lib/$name
+
   install -d $PKG/usr/share/pixmaps
   ln -sf /usr/share/icons/hicolor/48x48/apps/$name.png $PKG/usr/share/pixmaps/$name.png
   install -m 0644 -D $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop