summaryrefslogtreecommitdiff
path: root/system/veracrypt/veracrypt.SlackBuild
diff options
context:
space:
mode:
authorThomas Szteliga <ts@websafe.pl>2016-10-20 21:04:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-20 21:04:11 +0700
commit1183627c8b15fd54187760c26c592f06a891e8de (patch)
treeddca8602bebb53a9e91c9fe57d877bad35c5ac97 /system/veracrypt/veracrypt.SlackBuild
parent51262fd7287132cda4e55df300a674413f332ddb (diff)
downloadslackbuilds-1183627c8b15fd54187760c26c592f06a891e8de.tar.gz
system/veracrypt: Updated for version 1.19.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/veracrypt/veracrypt.SlackBuild')
-rw-r--r--system/veracrypt/veracrypt.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/system/veracrypt/veracrypt.SlackBuild b/system/veracrypt/veracrypt.SlackBuild
index b45b61b534..950da35989 100644
--- a/system/veracrypt/veracrypt.SlackBuild
+++ b/system/veracrypt/veracrypt.SlackBuild
@@ -23,10 +23,10 @@
# THE SOFTWARE.
PRGNAM=veracrypt
-VERSION=${VERSION:-1.18a}
+VERSION=${VERSION:-1.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCNAM=VeraCrypt_1.18_Source.tar.bz2
+SRCNAM=VeraCrypt_${VERSION}_Source.tar.gz
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -62,8 +62,10 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
-tar xvf $CWD/${SRCNAM} -C $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+# 1.19 tarball needs two steps, check: https://veracrypt.codeplex.com/workitem/566
+gunzip -f -k $CWD/${SRCNAM}
+tar xvf $CWD/$(basename ${SRCNAM} .gz) -C $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION/VeraCrypt-master-8220ae94c64722fbe39e92dfcfce84f8da96a91e
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,6 +74,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd src
+# Fixing the Makefile, check: https://veracrypt.codeplex.com/workitem/567
+sed -i Makefile -e 's/export CFLAGS := -Wall/export CFLAGS := -Wall -maes/g'
make
cp -av Setup/Linux/usr $PKG
rm -f $PKG/usr/bin/veracrypt-uninstall.sh