updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / tsocks-patched-ubuntu / PKGBUILD
blobc158cbac4226f95cf1ac0c0f515550bbb5d0292e
1 # Maintainer: Matthias Lehmann <mat at matlehmann dot de>
3 pkgname=tsocks-patched-ubuntu
4 pkgver=1.8beta5
5 pkgrel=1
6 pkgdesc="A transparent SOCKS proxying library with ubuntu patches (fallback)"
7 provides=('tsocks=1.8beta5')
8 conflicts=('tsocks')
9 arch=('i686' 'x86_64')
10 arch=(i686 x86_64)
11 url="http://tsocks.sourceforge.net"
12 license=("GPL")
13 depends=('glibc')
14 source=('http://archive.ubuntu.com/ubuntu/pool/universe/t/tsocks/tsocks_1.8beta5.orig.tar.gz'
15     'http://archive.ubuntu.com/ubuntu/pool/universe/t/tsocks/tsocks_1.8beta5-9.1.diff.gz')
16 md5sums=('51caefd77e5d440d0bbd6443db4fc0f8'
17          '0c27b96ca2965d7dae0c7c103943c026')
19 build() {
20   cd $srcdir/tsocks-1.8
21   patch -p1 < $srcdir/tsocks_1.8beta5-9.1.diff
22   for p in debian/patches/0?_*; do
23       echo "apply patch $p"
24       patch -p1 < $p
25   done
26   ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib || return 1
27   make || return 1
30 package() {
31   cd $srcdir/tsocks-1.8
32   make DESTDIR=$pkgdir install || return 1