# Maintainer: Christian Kampka <christian@kampka.net>
setvar pkgname = 'torsocks'
setvar pkgver = '2.2.0'
setvar pkgrel = '0'
setvar pkgdesc = ""Wrapper to safely torify applications""
setvar url = ""https://gitweb.torproject.org/torsocks.git""
setvar arch = ""all""
setvar license = ""GPLv2""
setvar depends = ""tor""
setvar makedepends = ""$depends_dev autoconf automake libtool""
setvar subpackages = ""$pkgname-doc""
setvar source = ""https://people.torproject.org/~dgoulet/${pkgname}/${pkgname}-${pkgver}.tar.xz""

setvar builddir = ""${srcdir}/${pkgname}-${pkgver}""

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
}

setvar sha512sums = ""89eb1263bfb0079ca5cb7fcc3a6fa1ecde1327df9ea98de48babfff1f8947b1e9db8407ead747fef0190671e7fff502025dcfcd9b6cba97abbaf25b5a575c62a  torsocks-2.2.0.tar.xz""