updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sublime-text-dev / PKGBUILD
bloba24a6790fcf91df895e421c37b72b80cc3008fb9
1 # Maintainer: Sander Boom <sander at inflowmotion dot nl>
2 # Contributor: realitygaps <realitygaps at yahoo dot com>
4 pkgname=sublime-text-dev
5 pkgver=2.2169
6 pkgrel=2
7 _build=2169
8 pkgdesc="sophisticated text editor for code, html and prose - dev build"
9 arch=('i686' 'x86_64')
10 url="http://www.sublimetext.com/dev"
11 license=('custom')
12 depends=(libpng12 gtk2)
13 conflicts=(sublime-text)
14 _arch=' x64'
15 _archurl='%20x64'
17 [[ "${CARCH}" = i686 ]] && _arch='' && _archurl=''
19 source=(
20   "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202%20Build%20${_build}${_archurl}.tar.bz2"
21   sublime-text-dev.desktop
22   sublime-text-dev-icon.png
23   subl
25 md5sums=('b0d5cba6e7a738eb2aaebbc620c1539f'
26          'a263a1c158d8a0cf00262f64e7953e41'
27          'd08225e4b82a9de9a8fcbbf2b4aa6c23'
28          'a3e2c2ceeb37c4eeb7712c660e79b01b')
30 [[ "${CARCH}" = i686 ]] && md5sums[0]='24288ad8e1129970deebdafd1a63200f'
33 build () {
34   cd ${srcdir}
36   install -Dm644 ${pkgname}.desktop \
37     ${pkgdir}/usr/share/applications/${pkgname}.desktop
38   install -Dm644 ${pkgname}-icon.png \
39     ${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png
41   install -dm755 ${pkgdir}/opt
42   cp -r "Sublime Text 2" ${pkgdir}/opt/${pkgname}
44   install -Dm755 subl ${pkgdir}/usr/bin/subl