Browse files

Added electrum SlackBuild

  • Loading branch information...
1 parent e072921 commit e28db79280fc83b387088923c62a9eb40edc4940 @nomnombtc committed Sep 26, 2012
Showing with 124 additions and 0 deletions.
  1. +13 −0 electrum/README
  2. +9 −0 electrum/checkout-git.sh
  3. +73 −0 electrum/electrum.SlackBuild
  4. +10 −0 electrum/electrum.info
  5. +19 −0 electrum/slack-desc
View
13 electrum/README
@@ -0,0 +1,13 @@
+electrum (lightweight Bitcoin client)
+
+Electrum is a lightweight Bitcoin client,
+based on a client-server protocol.
+
+Project Website: http://electrum-desktop.com/
+
+This needs ecdsa and slowaes for python, easiest
+way is to install python-pip from SBo, then as
+root:
+#pip install ecdsa
+#pip install slowaes
+
View
9 electrum/checkout-git.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+TS=$(date +%d%m%y)
+
+git clone git://github.com/spesmilo/electrum.git && \
+ mv electrum electrum-git${TS}
+
+tar cvjf electrum-git${TS}.tar.bz2 electrum-git${TS} && \
+ rm -rf electrum-git${TS}
+
View
73 electrum/electrum.SlackBuild
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# Slackware build script for electrum
+# written by nomnombtc (github.com/nomnombtc)
+
+PRGNAM=electrum
+VERSION=${VERSION:-git260912}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_nnb}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="AUTHORS LICENCE README RELEASE-NOTES"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
+
+chown -R root:root .
+
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+pyrcc4 icons.qrc -o lib/icons_rc.py
+
+python mki18n.py
+
+#slackify icon paths
+sed -i 's/app-install\/icons/pixmaps/g' setup.py
+sed -i 's/\/usr\/share\/app-install\/icons\/electrum.png/electrum/g' electrum.desktop
+
+python setup.py install --root=$PKG || exit 1
+
+find $PKG | xargs 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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
View
10 electrum/electrum.info
@@ -0,0 +1,10 @@
+PRGNAM="electrum"
+VERSION="git260912"
+HOMEPAGE="http://electrum-desktop.com/"
+DOWNLOAD="git://github.com/spesmilo/electrum.git"
+MD5SUM=""
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="nomnombtc"
+EMAIL=""
+APPROVED=""
View
19 electrum/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+electrum: electrum (lightweight Bitcoin client)
+electrum:
+electrum: Electrum is a lightweight Bitcoin client,
+electrum: based on a client-server protocol.
+electrum:
+electrum:
+electrum:
+electrum:
+electrum: Project Website: http://electrum-desktop.com/
+electrum:
+electrum:

0 comments on commit e28db79

Please sign in to comment.