aboutsummaryrefslogtreecommitdiff
path: root/system/veracrypt/veracrypt.SlackBuild
diff options
context:
space:
mode:
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 b45b61b53417..950da35989ca 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