Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 5 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
5  electrum/README
@@ -3,10 +3,9 @@ electrum (lightweight Bitcoin client)
3 3
 Electrum is a lightweight Bitcoin client,
4 4
 based on a client-server protocol. 
5 5
   
6  
-Project Website: http://electrum-desktop.com/
  6
+Project Website: http://electrum.ecdsa.org/
7 7
 
8 8
 This needs ecdsa and slowaes for python, easiest
9 9
 way is to install package "pip" from SBo, then as root:
10  
-#pip install ecdsa
11  
-#pip install slowaes
  10
+#pip install ecdsa slowaes
12 11
 
91  electrum/electrum-git.SlackBuild
... ...
@@ -0,0 +1,91 @@
  1
+#!/bin/sh
  2
+
  3
+# Slackware build script for electrum
  4
+
  5
+# Copyright 2012 nomnombtc <nomnombtc@arcor.de>
  6
+# All rights reserved.
  7
+#
  8
+# Redistribution and use of this script, with or without modification, is
  9
+# permitted provided that the following conditions are met:
  10
+#
  11
+# 1. Redistributions of this script must retain the above copyright
  12
+#    notice, this list of conditions and the following disclaimer.
  13
+#
  14
+#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  15
+#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  16
+#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
  17
+#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18
+#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19
+#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  20
+#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  21
+#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  22
+#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  23
+#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24
+
  25
+PRGNAM=electrum
  26
+VERSION=${VERSION:-git260912}
  27
+BUILD=${BUILD:-1}
  28
+TAG=${TAG:-_nnb}
  29
+
  30
+# Automatically determine the architecture we're building on:
  31
+if [ -z "$ARCH" ]; then
  32
+  case "$( uname -m )" in
  33
+    i?86) ARCH=i486 ;;
  34
+    arm*) ARCH=arm ;;
  35
+       *) ARCH=$( uname -m ) ;;
  36
+  esac
  37
+fi
  38
+
  39
+CWD=$(pwd)
  40
+TMP=${TMP:-/tmp/SBo}
  41
+PKG=$TMP/package-$PRGNAM
  42
+OUTPUT=${OUTPUT:-/tmp}
  43
+
  44
+DOCS="AUTHORS LICENCE README RELEASE-NOTES"
  45
+
  46
+if [ "$ARCH" = "i486" ]; then
  47
+  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  48
+elif [ "$ARCH" = "i686" ]; then
  49
+  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  50
+elif [ "$ARCH" = "x86_64" ]; then
  51
+  SLKCFLAGS="-O2 -fPIC"
  52
+fi
  53
+
  54
+set -e
  55
+
  56
+rm -rf $PKG
  57
+mkdir -p $TMP $PKG $OUTPUT
  58
+cd $TMP
  59
+rm -rf $PRGNAM-$VERSION
  60
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
  61
+cd $PRGNAM-$VERSION
  62
+
  63
+chown -R root:root .
  64
+
  65
+find . \
  66
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  67
+ -exec chmod 755 {} \; -o \
  68
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  69
+ -exec chmod 644 {} \;
  70
+
  71
+pyrcc4 icons.qrc -o lib/icons_rc.py
  72
+python mki18n.py
  73
+
  74
+#slackify icon paths
  75
+sed -i 's/app-install\/icons/pixmaps/g' setup.py
  76
+sed -i 's/\/usr\/share\/app-install\/icons\/electrum.png/electrum/g' electrum.desktop
  77
+
  78
+python setup.py install --root=$PKG || exit 1
  79
+
  80
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  81
+  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
  82
+
  83
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
  84
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
  85
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
  86
+
  87
+mkdir -p $PKG/install
  88
+cat $CWD/slack-desc > $PKG/install/slack-desc
  89
+
  90
+cd $PKG
  91
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
12  electrum/electrum.SlackBuild
@@ -23,9 +23,10 @@
23 23
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 24
 
25 25
 PRGNAM=electrum
26  
-VERSION=${VERSION:-git260912}
  26
+VERSION=${VERSION:-1.1}
27 27
 BUILD=${BUILD:-1}
28 28
 TAG=${TAG:-_nnb}
  29
+SRCNAM=$(echo $PRGNAM | awk -F "" '{$1=toupper($1)}1' OFS=)
29 30
 
30 31
 # Automatically determine the architecture we're building on:
31 32
 if [ -z "$ARCH" ]; then
@@ -56,9 +57,9 @@ set -e
56 57
 rm -rf $PKG
57 58
 mkdir -p $TMP $PKG $OUTPUT
58 59
 cd $TMP
59  
-rm -rf $PRGNAM-$VERSION
60  
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
61  
-cd $PRGNAM-$VERSION
  60
+rm -rf $SRCNAM-$VERSION
  61
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
  62
+cd $SRCNAM-$VERSION
62 63
 
63 64
 chown -R root:root .
64 65
 
@@ -68,9 +69,6 @@ find . \
68 69
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
69 70
  -exec chmod 644 {} \;
70 71
 
71  
-pyrcc4 icons.qrc -o lib/icons_rc.py
72  
-python mki18n.py
73  
-
74 72
 #slackify icon paths
75 73
 sed -i 's/app-install\/icons/pixmaps/g' setup.py
76 74
 sed -i 's/\/usr\/share\/app-install\/icons\/electrum.png/electrum/g' electrum.desktop
8  electrum/electrum.info
... ...
@@ -1,8 +1,8 @@
1 1
 PRGNAM="electrum"
2  
-VERSION="git260912"
3  
-HOMEPAGE="http://electrum-desktop.com/"
4  
-DOWNLOAD="git://github.com/spesmilo/electrum.git"
5  
-MD5SUM=""
  2
+VERSION="1.1"
  3
+HOMEPAGE="http://electrum.ecdsa.org/"
  4
+DOWNLOAD="http://electrum.ecdsa.org/Electrum-1.1.tar.gz"
  5
+MD5SUM="c3c55417e8c257256b6c234fc859b414"
6 6
 DOWNLOAD_x86_64=""
7 7
 MD5SUM_x86_64=""
8 8
 REQUIRES="%README%"
2  electrum/slack-desc
@@ -14,6 +14,6 @@ electrum:
14 14
 electrum:
15 15
 electrum:
16 16
 electrum:
17  
-electrum: Project Website: http://electrum-desktop.com/
  17
+electrum: Project Website: http://electrum.ecdsa.org/
18 18
 electrum:
19 19
 electrum:

No commit comments for this range

Something went wrong with that request. Please try again.