blob: bcfdcdcbeb5792a94ed773d89ce24d89c52ab8d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Alain Kalker <a.c.kalker@gmail.com>
_pkgbase=chromiumos-ui
pkgname=$_pkgbase-bin
pkgver=325086
# Older version (working sign-in without the need for Google API keys)
_pkgver=325086
# LKGR (Last Known Good Revision, *requires* Google API keys for sign-in to work)
#_pkgver=$(curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_ChromiumOS_Full/LAST_CHANGE)
pkgrel=2
pkgdesc="Chromium OS user interface (prebuilt binary)"
arch=('x86_64')
url="http://www.chromium.org/chromium-os"
license=('BSD')
depends=('google-chrome' 'libudev.so.0' 'jq')
optdepends=('chromiumos-ui-tts: ChromeVox text-to-speech, with accessibility support'
'chromium-pepper-flash: Flash support')
provides=("$_pkgbase")
conflicts=("$_pkgbase")
backup=("etc/$_pkgbase/default")
options=('!strip')
install=$_pkgbase.install
_srcname=chrome-linux
source=($_srcname-$_pkgver.zip::http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_ChromiumOS_Full/${_pkgver}/$_srcname.zip
https://chromium.googlesource.com/chromium/src/+/lkgr/LICENSE.chromium_os
$_pkgbase.default
$_pkgbase.desktop
$_pkgbase.sh
$_pkgbase-lastuser.desktop
$_pkgbase-login.desktop)
md5sums=('ffd1aac3e73fcdd05b8532289cba2140'
'fbe99aed473ffb9dc08ec871b1403314'
'001a472621cace5c2e140df95c632af1'
'0aa55e3947e85e3774bba3da274e09f8'
'9140be97f48a9d0147f605930b3d2e2e'
'bfd688d7d6e340df8e9296c8c40eb3a5'
'3c1772e39cdd805fe3052e4938371afe')
noextract=()
pkgver() {
echo $_pkgver
}
package() {
cd "$srcdir/$_srcname"
install -d "$pkgdir/usr/lib/$_pkgbase"
cp -a * "$pkgdir/usr/lib/$_pkgbase/"
# Fix permissions
find "$pkgdir/usr/lib/$_pkgbase" -type d -exec chmod 755 {} ';'
find "$pkgdir/usr/lib/$_pkgbase" -type f -exec chmod 644 {} ';'
chmod 755 "$pkgdir/usr/lib/$_pkgbase"/chrome{,-*}
chmod 755 "$pkgdir/usr/lib/$_pkgbase"/nacl*
chmod 755 "$pkgdir/usr/lib/$_pkgbase"/xdg-settings
chmod 755 "$pkgdir/usr/lib/$_pkgbase"/xdg-mime
# Allow users to override command-line options
install -Dm644 "$srcdir/$_pkgbase.default" "$pkgdir/etc/$_pkgbase/default"
install -D "$srcdir/$_pkgbase.sh" \
"$pkgdir/usr/bin/$_pkgbase"
install -Dm644 "$srcdir/$_pkgbase.desktop" \
"$pkgdir/usr/share/applications/$_pkgbase.desktop"
install -Dm644 "$srcdir/$_pkgbase-login.desktop" \
"$pkgdir/usr/share/applications/$_pkgbase-login.desktop"
install -Dm644 "$srcdir/$_pkgbase-lastuser.desktop" \
"$pkgdir/usr/share/applications/$_pkgbase-lastuser.desktop"
install -Dm644 "$srcdir/LICENSE.chromium_os" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.chromium_os"
}
|