# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Contributor: 7heo <7heo@mail.com>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
setvar pkgname = 'tsocks'
setvar pkgver = '1.8_beta5'
setvar pkgrel = '0'
setvar pkgdesc = ""A transparent SOCKS proxying library""
setvar url = ""http://tsocks.sourceforge.net/""
setvar arch = ""x86_64""
setvar license = ""GPL2""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = """"
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver/_beta/beta}.tar.gz
	configure.patch""
setvar builddir = ""${srcdir}/${pkgname}-${pkgver%_*}""

proc build {
	cd $builddir
        ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--libdir=/usr/lib \
		|| return 1
        make || return 1
}

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

setvar md5sums = ""51caefd77e5d440d0bbd6443db4fc0f8  tsocks-1.8beta5.tar.gz
644111485855c4d436fe89b9de9426d6  configure.patch""
setvar sha256sums = ""849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347  tsocks-1.8beta5.tar.gz
264628c26991c8c380dd6b2e0ced1cacfd52d33743477dac245360ef730474c4  configure.patch""
setvar sha512sums = ""b41636ea6b77abf0d1e3cda7bbca4e7ee96f3cdb1843f3a2c530650931e5567f67921de67b28ba9bab0f51df39770a3f7fb458cf7ac78aad7aa861923df2c4a9  tsocks-1.8beta5.tar.gz
919479e359cafe4b331f5e5b058e0f07d1e6a37aa614891f9b16b4ea12a2358f8f42bb75c8cf9ebbecb223f88b1326e35f490c166247bd00d58e1eee57955800  configure.patch""