updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / sublime-text-2 / PKGBUILD
blob924ff24e00a1822557a0d07b6a08eb84281b8283
1 # Maintainer: Bartosz Chmura <chmurli at gmail dot com>
3 pkgname=sublime-text-2
4 pkgver=2126
5 _build=2126
6 pkgrel=1
7 pkgdesc="sophisticated text editor for code, html and prose"
8 arch=('i686' 'x86_64')
9 url="http://www.sublimetext.com/2"
10 license=('custom')
11 depends=(libpng12 gtk2 desktop-file-utils)
12 install=$pkgname.install
13 _arch=' x64'
14 _archurl='%20x64'
15 [[ "${CARCH}" = i686 ]] && _arch='' && _archurl=''
16 source=(
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'
22 md5sums=(
23     'b04d80469d8cc60912ffde39952ce317'
24     '62f87ce1c5348d55a2957799d334115c'
25         'd08225e4b82a9de9a8fcbbf2b4aa6c23'
27 [[ "${CARCH}" = i686 ]] && md5sums[0]='e2b0895f6330c9b12cefdffe660170b0'
31 package() {
33         mkdir -p ${pkgdir}/opt/${pkgname}
34         
35         # remove 
36         cd ${srcdir}
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
43         # icon
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