updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / t6_client / PKGBUILD
blobdcecf5a88f1b379963eb301cd7915b806dab9472
1 # Maintainer: Strephil <strefil@yandex.ru>
2 pkgname=t6_client
3 pkgver=1.0
4 pkgrel=1
5 pkgdesc="Tunnel6 client."
6 arch=(i686)
7 url="http://tunnel6.zexos.org"
8 license=('GPL3')
9 depends=(iproute2)
10 install=
11 backup=('etc/tunnel6/client.conf')
12 source=(http://tunnel6.zexos.org/download/src/$pkgname-$pkgver-src.tar.bz2
13         t6_client.install
14         t6_client.rc.d)
15 md5sums=('deef70611ad7843010dfcf9cde527b8d'
16          'e595149ca2a09627b54b5ebb51dc4fe1'
17          '6ae8cacd9f89e67ead08d7fb5d6e5138')
18 build() {
19   cd "$srcdir/$pkgname-$pkgver-src/src"
21   mkdir -p $pkgdir/usr/sbin
22   mkdir -p $pkgdir/etc/rc.d
23   sed '/(Q)\(cp\|mkdir\|rm\|rmdir\)/s/ \([^ ]*\)$/ $(DESTDIR)\1/' -i makefile
24   make || return 1
25   make DESTDIR="$pkgdir" install || return 1
26   chmod go-r /etc/tunnel/client.conf
27   install -D -m755 $startdir/t6_client.rc.d $pkgdir/etc/rc.d/t6_client