void-packages/srcpkgs/sublime-text3/template

32 lines
1,016 B
Text
Raw Normal View History

2013-06-21 22:38:45 +00:00
# Template file for 'sublime-text3'
pkgname=sublime-text3
2013-07-05 21:41:05 +00:00
version=3046
2013-06-21 22:38:45 +00:00
revision=1
2013-07-05 21:41:05 +00:00
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x64.tar.bz2"
checksum="580c4f2a68487a54639b7f4365931ab21cc56e17105dfa4f95fd03ace32b2474"
wrksrc="sublime_text_3"
only_for_archs="x86_64"
2013-06-21 22:38:45 +00:00
maintainer="Steven R <strob AT styez DOT com>"
homepage="http://www.sublimetext.com/3dev"
2013-07-05 21:41:05 +00:00
license="Custom"
short_desc="Sublime Text is a sophisticated text editor for code, markup and prose"
2013-06-21 22:38:45 +00:00
do_install() {
2013-06-22 00:42:06 +00:00
vmkdir "opt/sublime_text"
vmkdir "usr/sbin"
cp --preserve=mode -r ./* "${DESTDIR}/opt/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 /opt/sublime_text/sublime_text ${DESTDIR}/usr/sbin/subl3
2013-06-21 22:38:45 +00:00
}
sublime-text3_package() {
2013-06-22 00:42:06 +00:00
nonfree="yes"
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
pkg_install() {
vmove all
}
2013-06-21 22:38:45 +00:00
}