updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / check-svn / PKGBUILD
blob427fc049516b8de0b4abf68ca588374954cff8a7
1 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=check-svn
3 pkgver=605
4 pkgrel=1
5 pkgdesc="A unit testing framework for C - svn version"
6 arch=('i686' 'x86_64')
7 url="http://check.sourceforge.net/"
8 license=('LGPL')
9 depends=()
10 makedepends=('subversion')
11 provides=('check')
12 conflicts=('check')
13 options=('!libtool')
14 install=$pkgname.install
15 source=()
16 md5sums=()
18 _svntrunk=https://check.svn.sourceforge.net/svnroot/check
19 _svnmod=check
21 build() {
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   [ -d $srcdir/${_svnmod}-build ] && rm -rf "$srcdir/$_svnmod-build"
34   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35   cd "$srcdir/$_svnmod-build/trunk"
37   #
38   # BUILD
39   #
40   autoreconf --install
41   ./configure --prefix=/usr
42   make
43   make DESTDIR="$pkgdir/" install