updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / sdl_ttf-svn / PKGBUILD
blobc6e3d72e96082f7083e08617898ca03bd96493d5
1 # Contributor: cghislai <charlyghislain@gmail.com>
3 pkgname=sdl_ttf-svn
4 pkgver=4463
5 pkgrel=1
6 pkgdesc="A library that allows you to use TrueType fonts in your SDL applications"
7 arch=('i686' 'x86_64')
8 url="http://www.libsdl.org/projects/SDL_ttf/"
9 license=('LGPL')
10 depends=('sdl>=1.2.99' 'freetype2')
11 conflicts=('sdl_ttf')
12 provides=('sdl_ttf=2.0.99')
13 options=('!libtool')
14 source=()
15 md5sums=()
17 _svntrunk=http://svn.libsdl.org/trunk/SDL_ttf
18 _svnmod=SDL_ttf
20 build() {
21         cd ${srcdir}
22         if [ -d $_svnmod/.svn ]; then
23           (cd $_svnmod && svn up -r $pkgver)
24         else
25           svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26         fi
27         msg "SVN checkout done or server timeout"
28         msg "Starting make..."
29         cd ${srcdir}/$_svnmod
30         
31   sh autogen.sh
32   ./configure --prefix=/usr --disable-nasm --enable-alsa --enable-esd --with-x --disable-rpath
33   make || return 1
34   make DESTDIR=${pkgdir} install
36   rm -rf ${srcdir}/$_svnmod-build