summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e877b7ad533abaf91f3786595416f7bbe691fed (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
# Maintainer: edu4rdshl

pkgname=tor-router
pkgver=1.2
pkgrel=1
pkgdesc='A tool that allow you to make TOR your default gateway and send all internet connections under TOR (as transparent proxy) for increase privacy/anonymity without extra unnecessary code.'
arch=('any')
url='https://gitlab.com/edu4rdshl/tor-router'
license=('GPL3')
depends=('tor' 'systemd')
optdepends=('curl: to verify if the script run sucessfully.')
install=tor-router.install
source=("https://gitlab.com/edu4rdshl/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
         'tor-router.install')
sha512sums=('82afdb5c4b9809bee095a8ab248e30bfbe8a46910cd3d59c91880df857ba954e801bace6a5c77d6d9707d5ca5eaa7f0cc02c7a5b00ba7e0a97afd5677b2b223e'
            '2a0393f2f2c5603b3c9f59c14510121a2e57392b701ba5be9336bd93624ff4e6e50d2338a4f0eeadf07ad1d0d50d8646d1418e418b593baea09a418f9972fac1'
            )

package() {
  cd "$pkgname-v$pkgver/files"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 $pkgname.service "$pkgdir/etc/systemd/system/$pkgname.service"
  install -Dm 644 ../README.md "$pkgdir/usr/share/doc/$pkgname/README"
  install -Dm 644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}