1 # Maintainer: Shanto <shanto@hotmail.com>
3 pkgname=titanium-studio
4 _pkgname=Titanium\ Studio
7 pkgdesc="A free and open source application development platform, Titanium lets you create native mobile, tablet and desktop application experiences using existing web skills like Javascript, HTML, CSS, Python, Ruby, and PHP."
8 url="http://www.appcelerator.com/products/"
11 depends=('java-environment>=6' 'gtk2>=2.20' 'libwebkit' 'libpng12' 'libjpeg6')
12 makedepends=('findutils')
16 "http://titanium-studio.s3.amazonaws.com/latest/titanium.linux.gtk.x86_64.zip"
21 'ca0cbb4f6a394877210892c182cbe1e1'
22 '71ea5cc8c1eefdf2c394655add2bef42'
25 if [ "$CARCH" = "i686" ]; then
26 source[0]="http://titanium-studio.s3.amazonaws.com/latest/titanium.linux.gtk.x86.zip"
27 md5sums[0]='10acf70c878e5d3718831f66f4c99fa9'
31 mkdir -p $pkgdir/usr/{bin,share/{applications,pixmaps,icons/hicolor/{16x16,32x32}/apps}}
33 _pkgroot="usr/share/${pkgname}"
34 cp -r "${srcdir}/${_pkgname}" "$pkgdir/${_pkgroot}"
35 cd "$pkgdir/${_pkgroot}"
37 sed -i 's|/usr/bin/readlink|readlink|' studio3
38 ln -sfT "/${_pkgroot}/studio3" "../../bin/${pkgname}"
39 find . -name '*.py' -exec sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' {} \;
41 install -m644 "${srcdir}/${pkgname}.desktop" "../applications/"
42 ln -sfT "/${_pkgroot}/icon.xpm" "../pixmaps/${pkgname}.xpm"
43 cd $pkgdir/${_pkgroot}
44 find ./ -path '*titanium*/window16*.png' -printf "/${_pkgroot}/%P" -quit | xargs -i ln -sf "{}" "../icons/hicolor/16x16/apps/${pkgname}.png"
45 find ./ -path '*titanium*/window32*.png' -printf "/${_pkgroot}/%P" -quit | xargs -i ln -sf "{}" "../icons/hicolor/32x32/apps/${pkgname}.png"