aboutsummaryrefslogtreecommitdiff
path: root/libeufin/libeufin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libeufin/libeufin.SlackBuild')
-rw-r--r--[-rwxr-xr-x]libeufin/libeufin.SlackBuild27
1 files changed, 10 insertions, 17 deletions
diff --git a/libeufin/libeufin.SlackBuild b/libeufin/libeufin.SlackBuild
index a6a0f23..aa55eb5 100755..100644
--- a/libeufin/libeufin.SlackBuild
+++ b/libeufin/libeufin.SlackBuild
@@ -1,9 +1,12 @@
-#!/bin/sh
+#!/bin/bash
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libeufin
VERSION=${VERSION:-0.10.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_slackcoder}
+PKGTYPE=${PKGTYPE:-txz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -13,25 +16,15 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -80,4 +73,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
(cd $CWD/root && find . -type f -not -path . -exec install -D -m 755 {} "$PKG/{}" \; )
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE