diff options
Diffstat (limited to 'system/veracrypt/veracrypt.SlackBuild')
-rw-r--r-- | system/veracrypt/veracrypt.SlackBuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/system/veracrypt/veracrypt.SlackBuild b/system/veracrypt/veracrypt.SlackBuild index 58ccb41612..118277f74a 100644 --- a/system/veracrypt/veracrypt.SlackBuild +++ b/system/veracrypt/veracrypt.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for VeraCrypt -# Copyright (c) 2016 Thomas Szteliga <ts@websafe.pl>, Opole, PL +# Copyright (c) 2016-2017 Thomas Szteliga <ts@websafe.pl>, Opole, PL # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -23,11 +23,9 @@ # THE SOFTWARE. PRGNAM=veracrypt -VERSION=${VERSION:-git_5103f19e} -GITVER=5103f19eab5b51e3ef2d21bb4f6035925b6698d4 +VERSION=${VERSION:-1.21} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=$PRGNAM-$GITVER.zip if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -63,8 +61,9 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION +tar xvf $CWD/VeraCrypt_${VERSION}_Source.tar.bz2 -C $PRGNAM-$VERSION cd $PRGNAM-$VERSION -unzip $CWD/${SRCNAM} + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -73,18 +72,18 @@ 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 +make package cp -av Setup/Linux/usr $PKG rm -f $PKG/usr/bin/veracrypt-uninstall.sh -chmod -x $PKG/usr/share/pixmaps/veracrypt.xpm find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $PKG/usr/share/veracrypt/doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + $PKG/usr/share/veracrypt/doc/* \ + $PKG/usr/doc/$PRGNAM-$VERSION rm -rf $PKG/usr/share/veracrypt cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |