updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / lsh-cvs / PKGBUILD
blob66ad6df2da1ae819be58cddd2fdca90cc0a0662e
1 # Maintainer: <grawity@gmail.com>
2 pkgname=lsh-cvs
3 pkgver=20110712
4 pkgrel=3
5 pkgdesc="SSH client/server"
6 arch=('i686' 'x86_64')
7 url="http://www.lysator.liu.se/~nisse/"
8 license=('GPL')
9 depends=('liboop' 'libxau' 'nettle')
10 makedepends=('cvs' 'gperf' 'guile'
11   # for documentation
12   'ghostscript' 'texinfo' 'texlive-core')
14 _cvsroot=":pserver:anonymous@cvs.lysator.liu.se:/cvsroot/lsh"
15 _cvsmod="lsh"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to $_cvsmod CVS server...."
20   if [ -d $_cvsmod/CVS ]; then
21     cd $_cvsmod
22     cvs -z3 update -d
23   else
24     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
25     cd $_cvsmod
26   fi
28   rm -rf "$srcdir/$_cvsmod-build"
29   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
30   cd "$srcdir/$_cvsmod-build"
32   msg "Starting build process"
34   ./.bootstrap
35   ./configure \
36     --prefix=/usr \
37     --sysconfdir=/etc \
38     --libexecdir=/usr/lib/lsh \
39     --localstatedir=/var \
40     --with-system-nettle \
41     --with-include-path="$PWD" \
42     --with-lib-path="$PWD/argp:$PWD/spki"
43   make bootstrap
44   make
47 package() {
48   cd "$srcdir/$_cvsmod-build"
49   make DESTDIR="$pkgdir/" install
51 # vi: ft=sh:ts=2:sw=2:et