blob: 44467df1ab9b56c12a47e52c619f15e6f15f53c2 (
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
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: grufo <madmurphy333 AT gmail DOT com>
# Contributor: TrialnError <autumn-wind AT web DOT de>
# Contributor: Yardena Cohen <yardenack AT gmail DOT com>
# Contributor: Max Roder <maxroder AT web DOT de>
# Contributor: Sebastian Jug <seb AT stianj DOT ug>
# Contributor: Alexiobash <me@alexiobash.com>
#
# Before running makepkg, you must do this:
#
# gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys D1483FA6C3C07136
#
# To port this PKGBUILD to another language of tor-browser you have to
# change ONLY the variable ${_language} below
_language='it'
# This PKGBUILD is based on https://aur.archlinux.org/packages/tor-browser/
_pkgname='tor-browser'
pkgname="${_pkgname}-${_language,,}"
pkgver='7.0.10'
pkgrel='1'
pkgdesc="Tor Browser Bundle: Anonymous browsing using firefox and tor (${_language})"
url='https://www.torproject.org/projects/torbrowser.html'
arch=('i686' 'x86_64')
_idstr32='linux32'
_idstr64='linux64'
license=('GPL')
depends=('gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types'
'dbus-glib' 'alsa-lib' 'desktop-file-utils' 'hicolor-icon-theme'
'libvpx' 'icu' 'libevent' 'nss' 'hunspell' 'sqlite')
optdepends=('zenity: simple dialog boxes'
'kdialog: KDE dialog boxes'
'gst-plugins-good: h.264 video'
'gst-libav: h.264 video'
'libpulse: PulseAudio audio driver'
'libnotify: Gnome dialog boxes')
install="${_pkgname}.install"
_archstr=$([[ "${CARCH}" == 'x86_64' ]] && echo -n "${_idstr64}" || echo -n "${_idstr32}")
validpgpkeys=('EF6E286DDA85EA2A4BA7DE684E2C6E8793298290')
source_i686=("https://dist.torproject.org/torbrowser/${pkgver}/${_pkgname}-${_idstr32}-${pkgver}_${_language}.tar.xz"{,.asc})
source_x86_64=("https://dist.torproject.org/torbrowser/${pkgver}/${_pkgname}-${_idstr64}-${pkgver}_${_language}.tar.xz"{,.asc})
source=("${_pkgname}.desktop"
"${_pkgname}.png"
"${_pkgname}.sh")
md5sums=('9178c9325979377f7ec57569b15fcb61'
'494afbfa60fb4ce21840244cc3f7208c'
'120910366e4094c652fe7c4ee55abbca')
md5sums_i686=('SKIP'
'SKIP')
md5sums_x86_64=('SKIP'
'SKIP')
noextract=("${_pkgname}-${_idstr64}-${pkgver}_${_language}.tar.xz"
"${_pkgname}-${_idstr32}-${pkgver}_${_language}.tar.xz")
package() {
sed -i "s/__REPL_LANGUAGE__/${_language}/g" "${_pkgname}.desktop"
sed -i "s/__REPL_NAME__/${pkgname}/g" "${_pkgname}.desktop"
sed -i "s/__REPL_NAME__/${pkgname}/g" "${_pkgname}.sh"
sed -i "s/__REPL_VERSION__/${pkgver}/g" "${_pkgname}.sh"
sed -i "s/__REPL_RELEASE__/${pkgrel}/g" "${_pkgname}.sh"
sed -i "s/__REPL_LANGUAGE__/${_language}/g" "${_pkgname}.sh"
sed -i "s/__REPL_ARCH__/${_archstr}/g" "${_pkgname}.sh"
install -Dm 644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm 644 "${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm 755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 "${_pkgname}-${_archstr}-${pkgver}_${_language}.tar.xz" "${pkgdir}/opt/${pkgname}/${_pkgname}-${_archstr}-${pkgver}_${_language}.tar.xz"
}
|