updated on Thu Jan 19 08:03:52 UTC 2012
[aur-mirror.git] / sublime-text-dev / PKGBUILD
blobf0df7a7fe319adf05ed0f60743d2e0e121769c25
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.2167
6 pkgrel=2
7 _build=2167
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=('5aa7a4ff31d03dc12fd7dab5e2e0157c'
26          'a263a1c158d8a0cf00262f64e7953e41'
27          'd08225e4b82a9de9a8fcbbf2b4aa6c23'
28          '6e0b9c2332c1c1dc9e1e28fda391cf54')
30 [[ "${CARCH}" = i686 ]] && md5sums[0]='2e78184c119a394d05a95963e181bc7d'
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