2013-06-21 22:38:45 +00:00
|
|
|
# Template file for 'sublime-text3'
|
|
|
|
pkgname=sublime-text3
|
2014-12-21 12:31:03 +00:00
|
|
|
version=3065
|
2014-05-06 22:09:04 +00:00
|
|
|
revision=1
|
2014-02-22 23:30:38 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x64.tar.bz2"
|
2014-12-21 12:31:03 +00:00
|
|
|
checksum="fe548e6d86d72cd7e90eee9d5396b590ae6e8f8b0dfc661d86c814214e60faea"
|
2014-02-22 23:30:38 +00:00
|
|
|
else
|
|
|
|
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x32.tar.bz2"
|
2014-12-21 12:31:03 +00:00
|
|
|
checksum="e25f84fe0d0c02ce71274d334fd42ce6313adcd4ec1d588b165d25f5e93ad78d"
|
2014-02-22 23:30:38 +00:00
|
|
|
fi
|
|
|
|
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
|
|
|
maintainer="Steven R <dev@styez.com>"
|
2013-06-21 22:38:45 +00:00
|
|
|
homepage="http://www.sublimetext.com/3dev"
|
2013-07-11 08:39:00 +00:00
|
|
|
license="Propietary"
|
|
|
|
short_desc="Sophisticated text editor for code, markup and prose"
|
2013-06-21 22:38:45 +00:00
|
|
|
|
2014-11-01 12:10:22 +00:00
|
|
|
repository="nonfree"
|
2014-02-22 23:30:38 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
wrksrc="sublime_text_3"
|
2013-12-25 19:11:04 +00:00
|
|
|
|
2013-06-21 22:38:45 +00:00
|
|
|
do_install() {
|
2014-02-22 23:30:38 +00:00
|
|
|
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
|
2013-06-21 22:38:45 +00:00
|
|
|
}
|