34 lines
1.3 KiB
Bash
34 lines
1.3 KiB
Bash
# Template file for 'sublime-text3'
|
|
pkgname=sublime-text3
|
|
version=3211
|
|
revision=1
|
|
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
|
short_desc="Sophisticated text editor for code, markup and prose"
|
|
maintainer="Andrea Brancaleoni <miwaxe@pompel.me>"
|
|
license="Propietary"
|
|
homepage="http://www.sublimetext.com/3dev"
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
distfiles="https://download.sublimetext.com/sublime_text_3_build_${version}_x64.tar.bz2"
|
|
checksum=0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee
|
|
else
|
|
distfiles="https://download.sublimetext.com/sublime_text_3_build_${version}_x32.tar.bz2"
|
|
checksum=480609962bbbd12128b5332c7831372b8851c13e160512730d1b0a6a835a3071
|
|
fi
|
|
|
|
repository="nonfree"
|
|
archs="i686 x86_64"
|
|
wrksrc="sublime_text_3"
|
|
nopie=yes
|
|
|
|
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
|
|
}
|