# Maintainer: Yardena Cohen # Contributor: Max Roder # Contributor: Sebastian Jug # To port this PKGBUILD to another language of tor-browser you # have to change $pkgname, $_language, $pkgdesc and $url in PKGBUILD # AND (!) the first line in the .install file! pkgname='tor-browser-en' pkgver='6.5' _language='en-US' pkgrel=1 pkgdesc='Tor Browser Bundle: Anonymous browsing using firefox and tor' url='https://www.torproject.org/projects/torbrowser.html.en' arch=('x86_64') 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" validpgpkeys=('EF6E286DDA85EA2A4BA7DE684E2C6E8793298290') source=("https://dist.torproject.org/torbrowser/${pkgver}/tor-browser-linux64-${pkgver}_${_language}.tar.xz"{,.asc} "${pkgname}.desktop" "${pkgname}.png" "${pkgname}.sh") sha256sums=('c4714061748a70d3871dd84ff88d2f317b386d290a5c1fb94a504a1c256f1960' 'SKIP' '3d5fc01f2cfbae0a00b7117b0b0a24028d1686e6f81a347809f74de2d8522ff7' '17fc2f5784d080233aca16e788d62ab6fe3e57cf781b123cfe32767de97d6d3b' '1bca06dc844f000fd5aae91a082f0cc0f8ca3397dfbf88b0adc847a4e43e1f16') noextract=("tor-browser-linux64-${pkgver}_${_language}.tar.xz") package() { cd "${srcdir}" sed -i "s/REPL_NAME/${pkgname}/g" ${pkgname}.sh sed -i "s/REPL_VERSION/${pkgver}/g" ${pkgname}.sh sed -i "s/REPL_LANGUAGE/${_language}/g" ${pkgname}.sh sed -i "s/REPL_NAME/${pkgname}/g" ${pkgname}.desktop sed -i "s/REPL_LANGUAGE/${_language}/g" ${pkgname}.desktop sed -i "s/REPL_COMMENT/${pkgdesc}/g" ${pkgname}.desktop 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 tor-browser-linux64-${pkgver}_${_language}.tar.xz ${pkgdir}/opt/${pkgname}/tor-browser-linux64-${pkgver}_${_language}.tar.xz }