updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / foma-svn / PKGBUILD
blob114cb6624a136db8ea52320dca14ce08863a5b58
1 # Contributor: FreakGuard
2 # Maintainer: Luva Bennati <lucak3 AT gmail DOT com>
4 pkgname=foma-svn
5 pkgver=141
6 pkgrel=1
7 pkgdesc="Compiler, programming language, and C library for constructing finite-state automata and transducers for various uses."
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/foma/"
10 license=('GPL2')
11 depends=('readline' 'zlib')
12 makedepends=('subversion')
13 provides=('foma')
14 conflicts=('foma')
16 _svntrunk=http://foma.googlecode.com/svn/trunk/foma/
17 _svnmod=foma
19 build() {
20   cd "${srcdir}"
21   msg "Connecting to SVN server...."
23   if [[ -d "${_svnmod}/.svn" ]]; then
24     (cd "${_svnmod}" && svn up -r "${pkgver}")
25   else
26     svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
27   fi
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
37   make CFLAGS+=-fPIC
40 package() {
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: