1 # Contributor: Fabian Streitel <karottenreibe@gmail.com>
6 pkgdesc="tdr - Todo Done Right. Simple todo tool with both console and GUI interface"
7 url="http://wiki.github.com/karottenreibe/tdr"
9 license=("DON'T PANIC License 1.1")
10 depends=('ruby' 'rubygems')
14 makedepends=('git' 'rake')
18 _gitroot="git://github.com/karottenreibe/tdr.git"
24 msg "Connecting to GIT server...."
26 if [ -d ${srcdir}/$_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
33 msg "GIT checkout done or server timeout"
35 msg "Installing gem dependency..."
36 gem install pablo -i ${startdir}/pkg`gem environment gemdir` || return 1
38 msg "Starting make..."
40 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build -n -q
41 cd ${srcdir}/$_gitname-build/
43 git checkout stable -q
44 rake pack ruby || return 1
46 mkdir -p ${startdir}/pkg/usr/bin
47 install -m755 tdr ${startdir}/pkg/usr/bin
48 mkdir -p ${startdir}/pkg/usr/share/java/tdr
49 install -m644 tdr.jar ${startdir}/pkg/usr/share/java/tdr
51 rm -r ${srcdir}/$_gitname-build