# Contributor: atie H. pkgname=hpodder-git pkgver=20080828 pkgrel=1 pkgdesc="A tool to scan and download podcasts" url="http://software.complete.org/software/projects/show/hpodder" license=('GPL') arch=('i686' 'x86_64') depends=('curl' 'id3v2' 'haskell-hslogger' 'haskell-missingh' \ 'haskell-configfile' 'haskell-hdbc-sqlite3' 'haskell-haxml') makedepends=('ghc' 'git') options=('strip') provides=('hpodder') conflicts=('hpodder') source=() md5sums=() _gitroot="git://git.complete.org/hpodder" _gitname="hpodder" build() { cd $startdir/src/ msg "connecting to repo.or.cz/cmus git server" if [ -d $startdir/src/$_gitname ] ; then cd $_gitname && git pull origin msg "local files are updated" else git clone $_gitroot fi msg "git checkout done" msg "starting make" cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build cd $startdir/src/$_gitname-build runhaskell Setup configure --prefix=/usr || return 1 runhaskell Setup build || return 1 runhaskell Setup register --gen-script || return 1 runhaskell Setup unregister --gen-script || return 1 runhaskell Setup copy --destdir=$startdir/pkg || return 1 rm -rf $startdir/src/$_gitname-build }