1 # Contributor: FreakGuard
2 # Maintainer: Luva Bennati <lucak3 AT gmail DOT com>
7 pkgdesc="Compiler, programming language, and C library for constructing finite-state automata and transducers for various uses."
9 url="http://code.google.com/p/foma/"
11 depends=('readline' 'zlib')
12 makedepends=('subversion')
16 _svntrunk=http://foma.googlecode.com/svn/trunk/foma/
21 msg "Connecting to SVN server...."
23 if [[ -d "${_svnmod}/.svn" ]]; then
24 (cd "${_svnmod}" && svn up -r "${pkgver}")
26 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
29 msg "SVN checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "${srcdir}/${_svnmod}-build"
33 cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
34 cd "${srcdir}/${_svnmod}-build"
36 sed -i 's/ltermcap/lncurses/' Makefile
41 cd "${srcdir}/${_svnmod}-build"
42 make prefix="${pkgdir}/usr" install
43 chmod 0644 "${pkgdir}/usr/lib/libfoma.a"
46 # vim:set ts=2 sw=2 et: