summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c336c756b951144ffba28651d4beaff20a4ae040 (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
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

gitname=torbrowser-launcher
pkgname=$gitname-git
pkgver=0.2.8
pkgrel=1
pkgdesc='Securely and easily download, verify, install, and launch Tor Browser'
url=https://github.com/micahflee/$gitname
arch=('any')
license=('BSD')
makedepends=(git)
depends=(fakeroot gnupg pygtk python-gnupg python-twisted tor xz)
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
    cd "${srcdir}/${gitname}"
    local ver="$(git describe --tags | sed 's|-|\.|g;s/v//g')"
    printf "%s" "${ver//-/.}"
}

package() {
    cd "${srcdir}/${gitname}"
    python setup.py install --root="${pkgdir}" --optimize=1
}