aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-07-02 23:32:23 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-07-02 23:32:23 +0200
commitfc90ff756dd74ef9e10b04a0e0ae329539af5ca2 (patch)
treee4ccbfa5e9db8d6f9c8607ed4763bb12259248b5 /testing
parentcce0069436222e0e284f46a86bd092716433a9da (diff)
downloadaports-fc90ff756dd74ef9e10b04a0e0ae329539af5ca2.tar.bz2
aports-fc90ff756dd74ef9e10b04a0e0ae329539af5ca2.tar.xz
testing/chromium: multiple fixes
add missing pak files split chromedriver split sandbox (suid) because it currently doesnt work
Diffstat (limited to 'testing')
-rw-r--r--testing/chromium/APKBUILD42
1 files changed, 28 insertions, 14 deletions
diff --git a/testing/chromium/APKBUILD b/testing/chromium/APKBUILD
index e0282bb159..47accccf81 100644
--- a/testing/chromium/APKBUILD
+++ b/testing/chromium/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=chromium
pkgver=43.0.2357.130
-pkgrel=3
+pkgrel=4
pkgdesc="chromium web browser"
url="http://www.chromium.org/"
arch="x86_64"
@@ -20,7 +20,7 @@ depends_dev="alsa-lib-dev libevent-dev libpng-dev jpeg-dev cairo-dev cups-dev
makedepends="$depends_dev xdg-utils yasm gperf bison flex perl python bash paxmark findutils"
install=""
options=suid
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-sandbox $pkgname-chromedriver"
source="https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
chromium-launcher.sh
chromium.default
@@ -152,13 +152,18 @@ build() {
package() {
cd "$_builddir"
- for bin in chrome chromedriver libffmpegsumo.so natives_blob.bin \
- snapshot_blob.bin; do
+ local bin pak
+ for bin in chrome libffmpegsumo.so natives_blob.bin snapshot_blob.bin; do
install -Dm755 out/Release/$bin \
"$pkgdir"/usr/lib/$pkgname/$bin || return 1
done
+ for pak in *.pak; do
+ install -Dm644 out/Release/$pak \
+ "$pkgdir"/usr/lib/$pkgname/$pak || return 1
+ done
+
#TODO do we really need bash for this simple script?
install -Dm755 "$srcdir"/chromium-launcher.sh \
"$pkgdir"/usr/lib/$pkgname/chromium-launcher.sh || return 1
@@ -166,19 +171,13 @@ package() {
install -Dm755 chrome/tools/build/linux/chrome-wrapper \
"$pkgdir"/usr/lib/$pkgname/chrome-wrapper || return 1
- install -Dm4755 out/Release/chrome_sandbox \
- "$pkgdir"/usr/lib/$pkgname/chrome_sandbox || return 1
-
- install -Dm644 out/Release/chrome_100_percent.pak \
- "$pkgdir"/usr/lib/$pkgname/chrome_100_percent.pak || return 1
-
- install -Dm644 out/Release/resources.pak \
- "$pkgdir"/usr/lib/$pkgname/resources.pak || return 1
-
cp -r out/Release/locales "$pkgdir"/usr/lib/$pkgname/ || return 1
install -Dm644 out/Release/chrome.1 \
- "$pkgdir"/usr/share/man/man1/chromium.1 || return 1
+ "$pkgdir"/usr/share/man/man1/chrome.1 || return 1
+
+ install -Dm644 out/Release/chrome.1 \
+ "$pkgdir"/usr/share/man/man1/chromium.1 || return 1
# It is important that we name the target "chromium-browser",
# xdg-utils expect it; bug #355517.
@@ -206,6 +205,21 @@ package() {
done
}
+chromedriver() {
+ pkgdesc="WebDriver driver for the Chromium Browser"
+ depends=
+ install -Dm755 "$_builddir"/out/Release/chromedriver \
+ "$subpkgdir"/usr/lib/$pkgname/chromedriver || return 1
+}
+
+sandbox() {
+ # this is currently not support and moved to subpkg
+ pkgdesc="Chromium sandbox suid helper"
+ depends=
+ install -Dm4755 "$_builddir"/out/Release/chrome_sandbox \
+ "$subpkgdir"/usr/lib/$pkgname/chrome_sandbox || return 1
+}
+
md5sums="352e936a3fef5e6de87c9a911eb75d94 chromium-43.0.2357.130.tar.xz
cdd5fd06a4138a7b6bc954f532193817 chromium-launcher.sh
ecea1c003138f189f491cb06f267cc11 chromium.default