From f96f9a9a8e9a09d225f064a623cc25b78f2d16ee Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 13 Feb 2017 22:09:42 +0700 Subject: python/python-axolotl-curve25519: Updated for version 0.1. Signed-off-by: Willy Sudiarto Raharjo --- .../python-axolotl-curve25519.SlackBuild | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'python/python-axolotl-curve25519/python-axolotl-curve25519.SlackBuild') diff --git a/python/python-axolotl-curve25519/python-axolotl-curve25519.SlackBuild b/python/python-axolotl-curve25519/python-axolotl-curve25519.SlackBuild index 596e4895f3..60e2a4f9f1 100644 --- a/python/python-axolotl-curve25519/python-axolotl-curve25519.SlackBuild +++ b/python/python-axolotl-curve25519/python-axolotl-curve25519.SlackBuild @@ -23,8 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-axolotl-curve25519 -GITREV=${GITREV:-e4a9c4de0eae27223200579c58d1f8f6d20637e2} -VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')} +VERSION=${VERSION:-0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,9 +59,14 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$GITREV -tar xvf $CWD/$PRGNAM-$GITREV.tar.gz -cd $PRGNAM-$GITREV +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION + +for sha1 in e31fe347051e8dd051514398c56a816a3a71f8a4 2bd1f5556fed92afb4efc2a95846a1c0f8332baf 87303fb7cffc99c13895c9888b270b740a7245d0 ; do + patch -p1 < "$CWD/patches/$sha1.patch" +done + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -81,7 +85,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3