1 # Contributor: fnord0 < fnord0 AT riseup DOT net >
6 pkgdesc="Tool for creating self-extracting compressed JavaScript"
8 url="http://code.google.com/p/jssfx/"
11 _svntrunk="http://jssfx.googlecode.com/svn/trunk/"
12 provides=('jssfx-svn')
15 if [ -d ${srcdir}/.svn ]; then
20 svn co ${_svntrunk} ${srcdir}
22 mkdir -p ${pkgdir}/usr/{bin,src} || return 1
23 install -d ${pkgdir}/usr/share/licenses/jssfx || return 1
25 svn export ${srcdir} ${pkgname} || return 1
26 install -Dm644 ${pkgname}/COPYRIGHT.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
29 echo "#!/bin/sh" > ${pkgdir}/usr/bin/${pkgname}
30 echo "#cd /usr/src/jssfx" >> ${pkgdir}/usr/bin/${pkgname}
31 echo "python2 /usr/src/jssfx/JsSfx.py \"\$@\"" >> ${pkgdir}/usr/bin/${pkgname}
32 echo "#cd -" >> ${pkgdir}/usr/bin/${pkgname}
33 chmod +x ${pkgdir}/usr/bin/${pkgname}