#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=torsocks
pkgver=2.3.0
pkgrel=02
pkgdesc='Wrapper to safely torify applications'
url='https://gitweb.torproject.org/torsocks.git/'
arch=('x86_64')
depends=('tor')
backup=("etc/tor/${pkgname}.conf")
source=(https://people.torproject.org/~dgoulet/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.asc})

build() {
  cd ${pkgname}-${pkgver}
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}


#---- license gpg-key sha256sums ----

license=('GPL2')

validpgpkeys=('B74417EDDF22AC9F9E90F49142E86A2A11F48D36')

sha256sums=(b9f1b981d6b3fd4e1820de1eee325f8a7038c84765d5a6cd9af12571d5cc3622 # torsocks-2.3.0.tar.xz
	57134b3d22c039935adef70fe06a703fd8660ea5259cab1aa05f62135d63509f) #  torsocks-2.3.0.tar.xz.asc
