development/lighttable: Updated for version 0.8.0.

Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
Ryan P.C. McQuen 2015-12-15 10:49:39 -08:00 committed by Willy Sudiarto Raharjo
parent e9cb5db719
commit f4402f04fb
2 changed files with 34 additions and 32 deletions

View file

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
# Slackware build script for Light Table # Slackware build script for Light Table
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com # Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
@ -20,12 +19,12 @@
# You may have received a copy of the GNU General Public License along # You may have received a copy of the GNU General Public License along
# with this program (most likely, a file named COPYING). If not, see # with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>. # <https://www.gnu.org/licenses/>.
PRGNAM=lighttable PRGNAM=lighttable
SRCNAM=LightTable SRCNAM=LightTable
VERSION=${VERSION:-0.7.2} VERSION=${VERSION:-0.8.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -42,27 +41,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
TARBALL_x86=$SRCNAM"Linux.tar.gz" set -e
TARBALL_x86_64=$SRCNAM"Linux64.tar.gz"
TARBALL_ROOT=$SRCNAM
# Set LIBDIRSUFFIX and TARBALL.
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
TARBALL="$TARBALL_x86_64"
else
LIBDIRSUFFIX=""
TARBALL="$TARBALL_x86"
fi
set -eu
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -pv $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf "$TARBALL_ROOT" rm -rf ${SRCNAM}-${VERSION}
tar -xvf "$CWD/$TARBALL" tar xvf $CWD/${VERSION}.tar.gz || tar xvf $CWD/${SRCNAM}-${VERSION}.tar.gz
cd "$TARBALL_ROOT" cd ${SRCNAM}-${VERSION}
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -70,17 +56,33 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/opt/$SRCNAM ## as aburd as this is, we have to run the build script twice,
cp -a * $PKG/opt/$SRCNAM ## because it always fails the first time,
## also LEIN_ROOT is important to set, or the script just
## hangs forever
LEIN_ROOT=true \
script/build.sh --release \
|| LEIN_ROOT=true \
script/build.sh --release
mkdir -pv $PKG/opt/${PRGNAM}-${VERSION}-linux/
mv builds/${PRGNAM}-${VERSION}-linux/ $PKG/opt/
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/bin
ln -sf /opt/$SRCNAM/$SRCNAM $PKG/usr/bin ln -sfv /opt/${PRGNAM}-${VERSION}-linux/$SRCNAM $PKG/usr/bin
mkdir -p $PKG/usr/share/pixmaps ## icon files
ln -sf /opt/$SRCNAM/core/img/lticon.png $PKG/usr/share/pixmaps/LightTable.png (
cd deploy/core/img/
for IMG in *.png
do
DIR_NAME=${IMG%.*}x${IMG%.*}
install -D $IMG $PKG/usr/share/icons/hicolor/$DIR_NAME/apps/$PRGNAM.png
done
)
mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop

View file

@ -1,10 +1,10 @@
PRGNAM="lighttable" PRGNAM="lighttable"
VERSION="0.7.2" VERSION="0.8.0"
HOMEPAGE="http://www.lighttable.com" HOMEPAGE="http://www.lighttable.com"
DOWNLOAD="https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.7.2/LightTableLinux.tar.gz" DOWNLOAD="https://github.com/LightTable/LightTable/archive/0.8.0.tar.gz"
MD5SUM="999ca3e734ea1cf7b5f3dc190e914ad9" MD5SUM="ca6a12d91ea6d8dee26a123e7fe7b566"
DOWNLOAD_x86_64="https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.7.2/LightTableLinux64.tar.gz" DOWNLOAD_x86_64=""
MD5SUM_x86_64="e49c9c57d1dec787a58094cc7e6d3f63" MD5SUM_x86_64=""
REQUIRES="" REQUIRES="leiningen nodejs"
MAINTAINER="Ryan P.C. McQuen" MAINTAINER="Ryan P.C. McQuen"
EMAIL="ryan.q@linux.com" EMAIL="ryan.q@linux.com"