2013-06-22 00:38:45 +02:00
|
|
|
# Template file for 'sublime-text3'
|
|
|
|
pkgname=sublime-text3
|
2013-08-30 19:21:47 +02:00
|
|
|
version=3053
|
|
|
|
revision=1
|
2013-07-05 23:41:05 +02:00
|
|
|
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x64.tar.bz2"
|
2013-08-30 19:21:47 +02:00
|
|
|
checksum="c2b8c760f5d394e704a4073f291b5e34f70bb1ed4830492bb1a34dff7ce27082"
|
2013-07-05 23:41:05 +02:00
|
|
|
wrksrc="sublime_text_3"
|
|
|
|
only_for_archs="x86_64"
|
2013-06-22 00:38:45 +02:00
|
|
|
maintainer="Steven R <strob AT styez DOT com>"
|
|
|
|
homepage="http://www.sublimetext.com/3dev"
|
2013-07-11 10:39:00 +02:00
|
|
|
license="Propietary"
|
|
|
|
short_desc="Sophisticated text editor for code, markup and prose"
|
2013-06-22 00:38:45 +02:00
|
|
|
|
|
|
|
do_install() {
|
2013-07-11 10:39:00 +02:00
|
|
|
vmkdir "usr/bin"
|
2013-07-19 22:25:32 +02:00
|
|
|
vmkdir "usr/share/sublime_text"
|
2013-07-11 10:39:00 +02:00
|
|
|
cp --preserve=mode -r ./* "${DESTDIR}/usr/share/sublime_text"
|
2013-06-22 02:42:06 +02:00
|
|
|
vinstall "sublime_text.desktop" 644 "usr/share/applications/"
|
|
|
|
for size in 128 16 256 32 48; do
|
|
|
|
vinstall "Icon/${size}x${size}/sublime-text.png" 644 "usr/share/icons/hicolor/${size}x${size}/apps/"
|
|
|
|
done
|
2013-07-11 10:39:00 +02:00
|
|
|
ln -s /usr/share/sublime_text/sublime_text ${DESTDIR}/usr/bin/subl3
|
2013-08-28 00:34:51 +02:00
|
|
|
sed -i 's:Exec=/opt/sublime_text/:Exec=/usr/share/sublime_text/:' ${DESTDIR}/usr/share/applications/sublime_text.desktop
|
2013-06-22 00:38:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sublime-text3_package() {
|
2013-06-22 02:42:06 +02:00
|
|
|
nonfree="yes"
|
|
|
|
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
|
|
|
pkg_install() {
|
|
|
|
vmove all
|
|
|
|
}
|
2013-06-22 00:38:45 +02:00
|
|
|
}
|