updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / libcaca-svn / PKGBUILD
blob89b89cf76ccbe095fc92172e359054f2d9f7ac77
1 # Contributor: totoloco <totoloco at gmail dot com>
3 pkgname=libcaca-svn
4 pkgver=3334
5 pkgrel=2
6 pkgdesc="A graphics library that outputs text instead of pixels"
7 arch=('i686' 'x86_64')
8 license=('WTFPL')
9 builddepends=('doxygen', 'svn')
10 buildconflicts=('mono')
11 conflicts=('libcaca')
12 replaces=('libcaca')
13 provides=('libcaca')
14 depends=('imlib2' 'freeglut' 'ruby' 'slang')
16 _svntrunk=svn://svn.zoy.org/caca/libcaca/trunk
17 _svnmod=libcaca
19 url="http://caca.zoy.org"
20 source=()
21 md5sums=()
23 build() {
24   cd "$srcdir"
26   msg "SVN checking out..."
27   if [ -d $_svnmod/.svn ]; then
28     (cd $_svnmod && svn up)
29   else
30     svn co $_svntrunk --config-dir ./ $_svnmod
31   fi
33   msg "SVN checkout done or server timeout"
34   msg "Starting make..." 
36   rm -rf "$srcdir/$_svnmod-build"
37   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38   cd "$srcdir/$_svnmod-build"
40   ./bootstrap
41   ./configure --prefix=/usr
42   make CPPUNIT_CFLAGS=-ldl || return 1
43   make DESTDIR=$pkgdir install
44   install -Dm644 COPYING $pkgdir/usr/share/licenses/libcaca/COPYING