-
-
Save inflowmotion/96e12ef66f829ca0d3ad to your computer and use it in GitHub Desktop.
PKGBUILD sublime-text-nightly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sander Boom <sander at inflowmotion dot nl> | |
pkgname=sublime-text-nightly | |
pkgver=3.3023 | |
pkgrel=2 | |
pkgdesc="Sophisticated text editor for code, html and prose - nightly build (available to registered users only)" | |
arch=('i686' 'x86_64') | |
url="http://www.sublimetext.com/3dev" | |
license=('custom') | |
depends=(libpng gtk2) | |
install=${pkgname}.install | |
_archurl='x64' | |
[[ "${CARCH}" = i686 ]] && _archurl='x32' | |
source=( | |
"http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${pkgver:2}_${_archurl}.tar.bz2" | |
"sublime_text_3.desktop" | |
) | |
md5sums=('89270cffbf437478c896651f724e88e9' | |
'3843bb9bba00e7817e3194ed99d2ff26') | |
[[ "${CARCH}" = i686 ]] && md5sums[0]='75774fe20ce4a7a98daae02ad1c57261' | |
build() { | |
cd "${srcdir}" | |
install -dm755 "${pkgdir}/opt" | |
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3" | |
for res in 128x128 16x16 256x256 32x32 48x48; do | |
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" | |
ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png" | |
done | |
install -Dm644 "sublime_text_3.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop" | |
install -dm755 "${pkgdir}/usr/bin" | |
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Sublime Text 3 Nightly | |
GenericName=Text Editor | |
Comment=Sophisticated text editor for code, markup and prose | |
Exec=subl3 %F | |
Terminal=false | |
MimeType=text/plain; | |
Icon=sublime-text | |
Categories=TextEditor;Development; | |
StartupNotify=true | |
Actions=Window;Document; | |
[Desktop Action Window] | |
Name=New Window | |
Exec=subl3 -n | |
OnlyShowIn=Unity; | |
[Desktop Action Document] | |
Name=New File | |
Exec=subl3 --command new_file | |
OnlyShowIn=Unity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment