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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Maintainer: Matt Parnell/ilikenwf <parwok@gmail.com>
# based on chromium-snapshot-bin by det
# Contributors: Ner0, alexwizard, thotypous, jdhore, xduugu, randypenguin, bdheeman, AlK
pkgname=ungoogled-chromium
pkgver=55.0.2883.95
pkgrel=1
pkgdesc="Modifications to Google Chromium for removing Google integration and enhancing privacy, control, and transparency"
arch=('x86_64')
url="https://github.com/Eloston/ungoogled-chromium"
license=('BSD')
depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss' 'icu'
'libexif' 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'snappy'
'pciutils' 'libpulse' 'harfbuzz' 'libsecret'
'perl' 'perl-file-basedir' 'desktop-file-utils' 'hicolor-icon-theme'
'gconf')
optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
'gnome-keyring: for storing passwords in GNOME keyring'
'kdeutils-kwalletmanager: for storing passwords in KWallet'
'pepper-flash: for Pepper Flash plugin [AUR]')
makedepends=('python3' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'git' 'quilt' 'clang')
provides=('chromium')
install=${pkgname}.install
source=("git://github.com/Eloston/ungoogled-chromium"
"${pkgname}.sh"
"${pkgname}.desktop"
"${pkgname}"_{16,22,24,32,48,64,128,256}.png)
md5sums=('SKIP'
'374877078f924e08afe93b30d0daea09'
'ccd3505ed32877a6e7e54fbb4f5040c1'
'6cd41f6e08eee03c6553603fb0b6ecd7'
'227eac16d1e737bed42742840b950d41'
'308eb2e0c509e12ecf33165ced9eef0d'
'e9944fe09afc8495a2fbf70db810a219'
'17856a060d1fc003447cb7a3f414be7d'
'f2325d8de3d217471f029e8b59a712e3'
'811f5de21b882cdb49618de549e017ca'
'c6cf982d5ebece0b9cd64f065acd384a')
# don't compress the package - we're just going to uncompress during install in a moment
PKGEXT='.pkg.tar'
pkgver() {
cd "$srcdir/${pkgname}"
echo $(grep -oPm1 '([0-9]+\.?)+' version.ini)
pkgrel=$(grep -oP '\=\ [0-9]$' version.ini|sed -e 's/\=\ //g')
}
build() {
cd "$srcdir/${pkgname}"
msg "Building...this will take a while..."
/usr/bin/python build.py
}
package() {
cd "$srcdir"
rm -rf "${pkgname}_${pkgver}-${pkgrel}" &> /dev/null
msg "Extracting built tarball to properly package..."
if [ -f "${pkgname}/build/${pkgname}_${pkgver}-${pkgrel}_linux_defaultcpu.tar.xz" ]; then
mv "${pkgname}/build/${pkgname}_${pkgver}-${pkgrel}_linux_defaultcpu.tar.xz" "$srcdir"
fi
tar xf "${pkgname}_${pkgver}-${pkgrel}_linux_defaultcpu.tar.xz"
msg2 "Creating directory structure..."
install -d "$pkgdir/opt/"
install -d "$pkgdir/usr/bin/"
install -d "$pkgdir/usr/share/applications/"
install -d "$pkgdir/usr/share/man/"
install -d "$pkgdir/usr/share/man1/"
install -d "$pkgdir/usr/share/licenses/${pkgname}/"
install -d "$pkgdir/usr/share/licenses/${pkgname}/"
msg2 "Moving contents..."
# Main script
install -m755 "${pkgname}.sh" "$pkgdir/usr/bin/${pkgname}"
# Desktop
install -m644 "${pkgname}.desktop" "$pkgdir/usr/share/applications/"
# Icons
for i in 16 22 24 32 48 64 128 256; do
install -Dm644 "${pkgname}_${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
done
# Man page
install -Dm644 "${pkgname}_${pkgver}-${pkgrel}/chrome.1" "$pkgdir/usr/share/man/man1/${pkgname}.1"
# License
install -m644 "${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/"
msg2 "Installing main directory..."
mv "${pkgname}_${pkgver}-${pkgrel}" "$pkgdir/opt/${pkgname}"
}
|