33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
# Template file for 'sublime-text3'
|
|
pkgname=sublime-text3
|
|
version=3061
|
|
revision=2
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x64.tar.bz2"
|
|
checksum="498a398f14d09e1c319fc2bb1e14d33573ca118d70c351e546912aaf1e22a419"
|
|
else
|
|
distfiles="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${version}_x32.tar.bz2"
|
|
checksum="cf6d9a590cdd24a7b5012f8604bd5f776b800042feaaf17cfa587798bdd7b3f9"
|
|
fi
|
|
depends="libpng gtk+ hicolor-icon-theme desktop-file-utils"
|
|
maintainer="Steven R <dev@styez.com>"
|
|
homepage="http://www.sublimetext.com/3dev"
|
|
license="Propietary"
|
|
short_desc="Sophisticated text editor for code, markup and prose"
|
|
|
|
nonfree="yes"
|
|
only_for_archs="i686 x86_64"
|
|
wrksrc="sublime_text_3"
|
|
|
|
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
|
|
}
|