1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
6 pkgdesc="Command line driven automated episode renamer."
8 url="http://github.com/fleger/serenity"
10 depends=('bash>=4.0' 'curl' 'html-xml-utils')
12 backup=('etc/serenity.conf')
14 _gitroot="http://github.com/fleger/serenity.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 make PREFIX="/usr" CONFDIR="/etc" || return 1
39 cd "$srcdir/$_gitname-build"
40 make PREFIX="/usr" CONFDIR="/etc" DESTDIR="$pkgdir/" install || return 1