void-packages/srcpkgs/sublime-text3/template
2013-12-17 13:44:17 -04:00

32 lines
1.1 KiB
Text

# Template file for 'sublime-text3'
pkgname=sublime-text3
version=3058
revision=1
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x64.tar.bz2"
checksum="500ffa2b17b8febdffa3a32aadce02484bccbcea502937479815241031a1ea57"
wrksrc="sublime_text_3"
only_for_archs="x86_64"
maintainer="Steven R <strob AT styez DOT com>"
homepage="http://www.sublimetext.com/3dev"
license="Propietary"
short_desc="Sophisticated text editor for code, markup and prose"
do_install() {
vmkdir "usr/bin"
vmkdir "usr/share/sublime_text"
cp --preserve=mode -r ./* "${DESTDIR}/usr/share/sublime_text"
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
ln -s /usr/share/sublime_text/sublime_text ${DESTDIR}/usr/bin/subl3
sed -i 's:Exec=/opt/sublime_text/:Exec=/usr/share/sublime_text/:' ${DESTDIR}/usr/share/applications/sublime_text.desktop
}
sublime-text3_package() {
nonfree="yes"
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove all
}
}