summaryrefslogtreecommitdiffstats
path: root/development/ioncube-loader/ioncube-loader.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ioncube-loader/ioncube-loader.SlackBuild')
-rw-r--r--development/ioncube-loader/ioncube-loader.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/development/ioncube-loader/ioncube-loader.SlackBuild b/development/ioncube-loader/ioncube-loader.SlackBuild
index a5d060986c..73109c6e8f 100644
--- a/development/ioncube-loader/ioncube-loader.SlackBuild
+++ b/development/ioncube-loader/ioncube-loader.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "ioncube-loader".
@@ -24,11 +24,14 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ioncube-loader
SRCNAM=ioncube
-VERSION=${VERSION:-10.3.9}
+VERSION=${VERSION:-11.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -65,7 +75,7 @@ cd $SRCNAM
chown -R root:root .
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/php/extensions
-install -m 0755 ioncube_loader_lin_5.6_ts.so $PKG/usr/lib${LIBDIRSUFFIX}/php/extensions
+install -m 0755 ioncube_loader_lin_7.4_ts.so $PKG/usr/lib${LIBDIRSUFFIX}/php/extensions
mkdir -p $PKG/etc/php.d
cat $CWD/ioncube${LIBDIRSUFFIX}.ini > $PKG/etc/php.d/20ioncube.ini.new
@@ -78,4 +88,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE