summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ba94e5060264b09e4e6838d49092da0abbea4c4 (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
28
29
30
31
32
33
34
# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
pkgname=tsocks-ipv6
pkgver=1.8beta6
GIT_COMMIT=be36c83a7326c75123fa019a4cb53792ecd8f689
pkgrel=2
pkgdesc='Transparent SOCKS proxying library, with IPv6 support'
url='https://github.com/Elysion-tcfa/tsocks'
license=('GPL')
arch=('i686' 'x86_64')
source=("https://github.com/Elysion-tcfa/tsocks/archive/${GIT_COMMIT}.tar.gz"
  "fix-mkinstalldirs.patch")
md5sums=('170e2115c29544b9ffd553dd78f63d6b'
         'b85f664abe7e6afdb908c94fbfd17602')
sha1sums=('52625a176ed9e7beb76d8666e88122da538156ac'
          'cf226b90eca8d3cc69cf4016c4f3ab2c0a88de57')
sha256sums=('76c4ac3cde166b3b84653e6788203bdcea2a313edb13c7aefaf9c69a64c76ea8'
            '0fcdd40b820b9ee2da2625f80ed5badd4326825a1cc89dc9596f202e405a0699')
conflicts=("tsocks")
provides=("tsocks")

build() {
	cd "${srcdir}/tsocks-${GIT_COMMIT}"
	export CPPFLAGS=
        patch -p1 < ../fix-mkinstalldirs.patch
	./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib
	make
}

package() {
	cd "${srcdir}/tsocks-${GIT_COMMIT}"
	make DESTDIR="${pkgdir}" install
	install -d "${pkgdir}/usr/share/${pkgname}"
	install -m644 tsocks.conf.{simple,complex}.example "${pkgdir}/usr/share/${pkgname}"
}