1 # Contributor: Chris Bolton <chriskun@saikonet.org>
5 pkgdesc="A social network status distributer with feed importing and regular expression filtering."
7 url="http://github.com/stythys/hermes"
8 makedepends=('git' 'ghc' 'cabal-install' 'haskell-parsec' 'haskell-http' 'haskell-regex-compat')
11 _gitroot="git://github.com/Stythys/Hermes.git"
15 msg "Installing cabal packages...."
17 cabal install hoauth-0.2.5
18 cabal install web-encodings
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone --recurse-submodules $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone --recurse-submodules "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 ghc -O2 --make Main -threaded -rtsopts -o hermes
38 mkdir -p $pkgdir/usr/bin
39 install -m755 hermes $pkgdir/usr/bin