diff --git a/sublime_text.be0 b/sublime_text.be0 new file mode 100755 index 000000000..447c013ae --- /dev/null +++ b/sublime_text.be0 @@ -0,0 +1,48 @@ +#!/usr/bin/env beesh + +# BEE_VERSION sublime_text-3.1.1-0 + +# https://www.sublimetext.com/ + +SRCURL[0]="https://download.sublimetext.com/sublime_text_3_build_3176_x64.tar.bz2" + +# PATCHURL+=() + +# EXCLUDE+=() + +build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure "${@}" +#} + +#mee_build() { +# bee_build +#} + +mee_install() { + DD=${D}/usr/local/sublime_text + mkdir -p ${D}${BINDIR} + ln -s /usr/local/sublime_text/sublime_text ${D}${BINDIR}/sublime_text + ln -s /usr/local/sublime_text/sublime_text ${D}${BINDIR}/subl + mkdir -p ${DD} + desktop-file-install --dir ${D}${DATADIR}/applications ${S}/sublime_text.desktop + + for size in 16x16 32x32 48x48 128x128 256x256 ; do + install -v -D -m 644 ${S}/Icon/${size}/sublime-text.png ${D}${DATADIR}/icons/hicolor/${size}/apps/sublime-text.png + done + cp -vr ${S}/. ${DD} + rm -rf ${DD}/{sublime_text.desktop,Icon} +} +## by default this may be 'make install DESTDIR="${D}"' + \ No newline at end of file