1 # Maintainer: Gordin <9ordin at gmail dot com>
6 pkgdesc="Responsive Open Learning Environments - svn trunk"
8 url="http://sourceforge.net/projects/role-project/"
9 license=('Apache' 'BSD')
10 depends=('java-environment' 'bash')
13 builtdepends=('maven')
14 install='role.install'
18 sha256sums=('c7c9244695f017a0a83ce1183333292dfc2a4309d4cdce8fe11d9bf9eaf5bfc9')
20 _svntrunk=https://role-project.svn.sourceforge.net/svnroot/role-project/trunk
25 msg "Connecting to SVN server...."
27 if [[ -d "$_svnmod/.svn" ]]; then
28 (cd "$_svnmod" && svn up -r "$pkgver")
30 svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
33 msg "SVN checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_svnmod-build"
37 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38 cd "$srcdir/$_svnmod-build"
47 tar -C ${srcdir} -xzf $srcdir/$_svnmod-build/assembly/target/role-${_ver}-sdk.tar.gz
48 cd ${srcdir}/role-${_ver}-sdk
50 install -d ${pkgdir}/${_role}
51 install -d ${pkgdir}/usr/bin
53 cd ${srcdir}/role-${_ver}-sdk
54 mv * ${pkgdir}/${_role}
59 ln -sf /${_role}/bin/start.sh ${pkgdir}/usr/bin/role
60 sed -i "s|\.\.|/${_role}|g" bin/start.sh
61 sed -i "2imkdir -p ~/.config/role" bin/start.sh
62 sed -i "3icd ~/.config/role" bin/start.sh
64 install -D -m755 "${srcdir}/role.init" "${pkgdir}/etc/rc.d/role"