4 pkgdesc="A simple client-side library for IMAP4Rev1 servers written in lua"
6 url="https://gitorious.org/luaimap"
10 _gitroot="git://gitorious.org/luaimap/luaimap4.git"
15 if [ -d $_gitname ] ; then
21 msg "GIT checkout done or server timeout"
24 rm -rf $_gitname-build
25 git clone $_gitname $_gitname-build
28 mkdir -p ${pkgdir}/usr/share/lua/5.1/ || return 1
29 cp -ax imap4 ${pkgdir}/usr/share/lua/5.1/ || return 1
30 mkdir -p ${pkgdir}/usr/share/lua/5.1/imap4/examples || return 1
31 cp -ax *.lua ${pkgdir}/usr/share/lua/5.1/imap4/examples/ || return 1
32 sed -i 's#local path = "\./imap4/"#local path = "/usr/share/lua/5.1/imap4/"#' ${pkgdir}/usr/share/lua/5.1/imap4/init.lua || return 1