Browse Source

l/zxcvbn-cpp: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
fc8e1c36d6
  1. 12
      l/zxcvbn-cpp/zxcvbn-cpp.SlackBuild

12
l/zxcvbn-cpp/zxcvbn-cpp.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
# Copyright (C) 2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -36,7 +36,7 @@ REPO=${REPO:-https://github.com/rianhunter/zxcvbn-cpp.git}
# Build infos
NAMEPKG=${NAMEPKG:-zxcvbn-cpp}
BUILD=${BUILD:-4GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -79,9 +79,11 @@ tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/zxcvbn-cpp-makefile.diff
# Compile Python module
python setup.py build
python setup.py install --root=$PKG
# Compile Python module, both for Python 2 and Python 3
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Compile C/C++ library
cd native-src/zxcvbn

Loading…
Cancel
Save