1 # Maintainer: Bartosz Chmura <chmurli at gmail dot com>
7 pkgdesc="sophisticated text editor for code, html and prose"
9 url="http://www.sublimetext.com/2"
11 depends=(libpng12 gtk2 desktop-file-utils)
12 install=$pkgname.install
15 [[ "${CARCH}" = i686 ]] && _arch='' && _archurl=''
17 "Sublime Text 2 Build ${_build}${_arch}.tar.bz2::http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202%20Build%20${_build}${_archurl}.tar.bz2"
18 'sublime-text-2.desktop'
19 'sublime-text-2-icon.png'
23 'b04d80469d8cc60912ffde39952ce317'
24 '62f87ce1c5348d55a2957799d334115c'
25 'd08225e4b82a9de9a8fcbbf2b4aa6c23'
27 [[ "${CARCH}" = i686 ]] && md5sums[0]='e2b0895f6330c9b12cefdffe660170b0'
33 mkdir -p ${pkgdir}/opt/${pkgname}
37 #yes | rm -Rf "Sublime Text 2" || return 1
39 tar xvjf "Sublime Text 2 Build ${_build}${_arch}.tar.bz2" || return 1
40 cp -R Sublime\ Text\ 2/* ${pkgdir}/opt/${pkgname} || return 1
41 chmod -R 755 ${pkgdir}/opt/${pkgname} || return 1
44 install -m 644 ${srcdir}/sublime-text-2-icon.png ${pkgdir}/opt/${pkgname} || return 1
46 install -d -m 755 ${pkgdir}/usr/share/applications || return 1
47 install -m 644 ${srcdir}/sublime-text-2.desktop ${pkgdir}/usr/share/applications || return 1