diff options
Diffstat (limited to 'deps/cryfs/cryfs.SlackBuild')
-rwxr-xr-x | deps/cryfs/cryfs.SlackBuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/deps/cryfs/cryfs.SlackBuild b/deps/cryfs/cryfs.SlackBuild index 30902bf..4c789fc 100755 --- a/deps/cryfs/cryfs.SlackBuild +++ b/deps/cryfs/cryfs.SlackBuild @@ -24,11 +24,12 @@ # ----------------------------------------------------------------------------- +cd $(dirname $0) ; CWD=$(pwd) + PKGNAM=cryfs VERSION=${VERSION:-0.9.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} -CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-$PKGNAM @@ -43,6 +44,14 @@ if [ -z "$ARCH" ]; then export ARCH 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=${ARCH} -mtune=i686" SLKLDFLAGS="" |