|
|
@ -5,12 +5,13 @@ |
|
|
|
# Anyone can freely modify and/or distribute this script without restrictions |
|
|
|
# |
|
|
|
# Originally written by Luke Williams (xocel@iquidus.org) |
|
|
|
# Currently maintained by Bruno Queiros (bqueiros@gmail.com) |
|
|
|
# Previously maintained by Bruno Queiros (bqueiros@gmail.com) |
|
|
|
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=sublime_text |
|
|
|
VERSION=${VERSION:-3.2.11} |
|
|
|
VERSION=${VERSION:-4.1.69} |
|
|
|
SRCVERSION=${VERSION//[.]/} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
@ -23,9 +24,6 @@ if [ -z "$ARCH" ]; then |
|
|
|
esac |
|
|
|
fi |
|
|
|
|
|
|
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what |
|
|
|
# the name of the created package would be, and then exit. This information |
|
|
|
# could be useful to other scripts. |
|
|
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then |
|
|
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" |
|
|
|
exit 0 |
|
|
@ -35,18 +33,12 @@ TMP=${TMP:-/tmp/SBo} |
|
|
|
PKG=$TMP/package-$PRGNAM |
|
|
|
OUTPUT=${OUTPUT:-/tmp} |
|
|
|
|
|
|
|
TARBALL_x86="sublime_text_3_build_3211_x32.tar.bz2" # Name of 32bit tarball |
|
|
|
TARBALL_x86_64="sublime_text_3_build_3211_x64.tar.bz2" # Name of 64bit tarball |
|
|
|
TARBALL_ROOT="sublime_text_3" # Name of tarballs root directory |
|
|
|
|
|
|
|
# Set LIBDIRSUFFIX and TARBALL. |
|
|
|
if [ "$ARCH" = "x86_64" ]; then |
|
|
|
LIBDIRSUFFIX="64" |
|
|
|
TARBALL="$TARBALL_x86_64" |
|
|
|
else |
|
|
|
LIBDIRSUFFIX="" |
|
|
|
TARBALL="$TARBALL_x86" |
|
|
|
fi |
|
|
|
case "$ARCH" in |
|
|
|
x86_64) TARBALL="sublime_text_build_""$SRCVERSION""_x64.tar.xz" ;; |
|
|
|
*) echo "Package for $ARCH architecture is not available." ; exit 1 ;; |
|
|
|
esac |
|
|
|
|
|
|
|
TARBALL_ROOT="sublime_text" # Name of tarballs root directory |
|
|
|
|
|
|
|
set -eu |
|
|
|
|
|
|
|