summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e60b1bc01dac5ee6a2a2448ddcaa5fdf4967734 (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
# Maintainer: Manuel Palenzuela <sadshinobi@protonmail.com>

author=BlackArch
pkgname=torctl-git
_gitname=torctl
pkgver=0.r26.202e4b2
pkgrel=1
pkgdesc='Script to redirect all traffic through tor network including dns queries for anonymizing entire system.'
arch=('any')
url='https://github.com/BlackArch/torctl'
license=('GPL3')
depends=('tor' 'systemd' 'curl' 'iptables' 'secure-delete' 'iproute2'
         'macchanger')
makedepends=("git")
provides=("torctl")
source=("git://github.com/$author/$_gitname.git")

md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
    cd "$_gitname"
    printf '0.r%s.%s' \
    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_gitname"

  install -Dm 755 "$_gitname" "$pkgdir/usr/bin/$_gitname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$_gitname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
  install -Dm 644 service/$_gitname-autostart.service \
    "$pkgdir/etc/systemd/system/$_gitname-autostart.service"
  install -Dm 644 service/$_gitname-autowipe.service \
    "$pkgdir/etc/systemd/system/$_gitname-autowipe.service"
  install -Dm 644 bash-completion/$_gitname \
    "$pkgdir/usr/share/bash-completion/completions/$_gitname"
}