summaryrefslogtreecommitdiff
path: root/development/google-webdesigner
diff options
context:
space:
mode:
Diffstat (limited to 'development/google-webdesigner')
-rw-r--r--development/google-webdesigner/README16
-rw-r--r--development/google-webdesigner/doinst.sh7
-rw-r--r--development/google-webdesigner/google-webdesigner.SlackBuild79
-rw-r--r--development/google-webdesigner/google-webdesigner.info10
-rw-r--r--development/google-webdesigner/slack-desc19
5 files changed, 131 insertions, 0 deletions
diff --git a/development/google-webdesigner/README b/development/google-webdesigner/README
new file mode 100644
index 0000000000..ea2e700790
--- /dev/null
+++ b/development/google-webdesigner/README
@@ -0,0 +1,16 @@
+Google Web Designer is an advanced web application built with HTML5
+which lets you design and build HTML5 advertisements and other web
+content using an integrated visual and code interface.
+
+Google Web Designer requires an internet connection to run
+the first time after installation.
+
+Note:
+Google updates the package without changing the download
+link location and they don't use version numbering in the filename
+(the version is more an internal numbering).
+
+Therefore, this script is subject to failing (and a different MD5SUM)
+at any time due to the fact that you might get a newer version
+of Google Web Designer than what the script is designed to use.
+Please notify the maintainer if this is the case.
diff --git a/development/google-webdesigner/doinst.sh b/development/google-webdesigner/doinst.sh
new file mode 100644
index 0000000000..dd240ff2ae
--- /dev/null
+++ b/development/google-webdesigner/doinst.sh
@@ -0,0 +1,7 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1
+fi
diff --git a/development/google-webdesigner/google-webdesigner.SlackBuild b/development/google-webdesigner/google-webdesigner.SlackBuild
new file mode 100644
index 0000000000..c31b49270f
--- /dev/null
+++ b/development/google-webdesigner/google-webdesigner.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for google-webdesigner
+
+# Copyright 2014 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=google-webdesigner
+VERSION="1.0.5.0416"
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# No flags/configure needed as it is just a binary repackaging.
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $PKG
+if [ "$ARCH" = "i486" ]; then
+ ar p $CWD/google-webdesigner_current_i386.deb data.tar.gz | tar xvz
+elif [ "$ARCH" = "x86_64" ]; then
+ ar p $CWD/google-webdesigner_current_amd64.deb data.tar.gz | tar xvz
+fi
+cd $PKG
+chown -R root:root .
+find . -type d -exec chmod 0755 {} \;
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/google-webdesigner/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/share/doc
+
+# Clean up cruft/unneeded directories.The cron job in /etc is for Debian/Ubuntu only:
+rm -rf $PKG/etc
+
+mkdir -p $PKG/usr/share/pixmaps
+cp $PKG/opt/google/webdesigner/resources/product_logo_128.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/google-webdesigner/google-webdesigner.info b/development/google-webdesigner/google-webdesigner.info
new file mode 100644
index 0000000000..ec7fa684aa
--- /dev/null
+++ b/development/google-webdesigner/google-webdesigner.info
@@ -0,0 +1,10 @@
+PRGNAM="google-webdesigner"
+VERSION="1.0.5.0416"
+HOMEPAGE="https://www.google.com/webdesigner/"
+DOWNLOAD="https://dl.google.com/linux/direct/google-webdesigner_current_i386.deb"
+MD5SUM="5178fe5e0e7f4c40c08f10dad1023ea4"
+DOWNLOAD_x86_64="https://dl.google.com/linux/direct/google-webdesigner_current_amd64.deb"
+MD5SUM_x86_64="f5e9d79fcd714c2ca45da52c80cc2494"
+REQUIRES=""
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@slackbuilds.org"
diff --git a/development/google-webdesigner/slack-desc b/development/google-webdesigner/slack-desc
new file mode 100644
index 0000000000..09ae37afbf
--- /dev/null
+++ b/development/google-webdesigner/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+google-webdesigner: google-webdesigner (Web Designer Tool)
+google-webdesigner:
+google-webdesigner: Google Web Designer is an advanced web application built with HTML5
+google-webdesigner: which lets you design and build HTML5 advertisements and other web
+google-webdesigner: content using an integrated visual and code interface.
+google-webdesigner:
+google-webdesigner:
+google-webdesigner: Project URL: https://www.google.com/webdesigner/
+google-webdesigner:
+google-webdesigner:
+google-webdesigner: