1 # Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
5 pkgdesc="Manage your TODO items using Git as a backend"
7 url='http://www.uninformativ.de/projects/?q=gitodo'
8 license=('custom:PIZZA-WARE')
12 'ncurses: Colored output'
13 'cron: Reminder functionality'
14 'python: Overview of your TODO items in `highcal`'
15 'vim: A reasonable editor, syntax files are provided'
18 _gitroot='git://github.com/vain/gitodo.git'
23 msg "Connecting to GIT server...."
25 if [[ -d "$_gitname" ]]; then
26 cd "$_gitname" && git pull origin
27 msg "The local files are updated."
29 git clone "$_gitroot" "$_gitname"
32 msg "GIT checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 install -Dm755 gitodo "$pkgdir"/usr/bin/gitodo
44 install -Dm755 highcal "$pkgdir"/usr/bin/highcal
46 install -Dm644 README.md \
47 "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
48 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
50 install -Dm644 vim/ftdetect/gitodo.vim \
51 "$pkgdir"/usr/share/vim/vimfiles/ftdetect/gitodo.vim
52 install -Dm644 vim/syntax/gitodo.vim \
53 "$pkgdir"/usr/share/vim/vimfiles/syntax/gitodo.vim
56 # vim:set ts=2 sw=2 et: