Permalink
Browse files

Added litecoin SlackBuild

  • Loading branch information...
1 parent 00f9de3 commit e2629b556d930d18a59c34e21ae7ea2ab8a84374 @nomnombtc committed Oct 11, 2012
Showing with 179 additions and 0 deletions.
  1. +14 −0 litecoin/README
  2. +12 −0 litecoin/checkout-git.sh
  3. +10 −0 litecoin/litecoin-qt.desktop
  4. +113 −0 litecoin/litecoin.SlackBuild
  5. +11 −0 litecoin/litecoin.info
  6. +19 −0 litecoin/slack-desc
View
@@ -0,0 +1,14 @@
+Litecoin (P2P electronic cash system)
+
+Litecoin aims to be a coin that is like silver to Bitcoin's gold.
+It manages to maintain the unique traits and attributes of Bitcoin,
+while adding to the mixture CPU-specific mining and a 2.5 minute
+block rate. Litecoin uses Scrypt as a proof-of-work scheme.
+Scrypt uses the low-latency cache memory of modern processors to
+provide greater hash-speeds on CPUs in comparison to GPUs.
+
+This requires: qrencode
+
+UPNP is disabled, it requires miniupnpc, which is not available on SBo.
+
+Package provides both, litecoin-qt (GUI) and litecoind (CLI).
View
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+TS=$(date +%d%m%y)
+PRGNAM=litecoin
+URL="git://github.com/litecoin-project/litecoin.git"
+
+git clone $URL && \
+ mv $PRGNAM $PRGNAM-git${TS}
+
+tar cvjf $PRGNAM-git${TS}.tar.bz2 $PRGNAM-git${TS} && \
+ rm -rf $PRGNAM-git${TS}
+
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Litecoin
+GenericName=Litecoin QT-Client
+Comment=Litecoin client to send and receive money
+Exec=/usr/bin/litecoin-qt
+Icon=litecoin
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Network;P2P
@@ -0,0 +1,113 @@
+#!/bin/sh
+
+# Slackware build script for litecoin
+
+# Copyright 2012 nomnombtc <nomnombtc@arcor.de>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=litecoin
+VERSION=${VERSION:-git101012}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_nnb}
+
+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}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}-$VERSION.tar.bz2
+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 {} \;
+
+# build litecoin-qt
+CXXFLAGS="$SLKCFLAGS" \
+qmake "USE_UPNP=-" USE_SSL=1 USE_QRCODE=1
+make -j4
+
+cd src
+
+# build litecoind
+# disable UPNP(this would require miniupnpc)
+sed -i 's/USE_UPNP:=0/USE_UPNP:=/g' makefile.unix
+# disable static linking, not supported by boost in slackware
+sed -i 's/Bstatic/Bdynamic/g' makefile.unix
+CXXFLAGS="$SLKCFLAGS" \
+make -f makefile.unix litecoind USE_SSL=1
+
+cd ..
+
+mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/share/pixmaps
+mkdir -p $PKG/usr/share/applications
+
+install -m 0755 litecoin-qt $PKG/usr/bin/litecoin-qt
+install -m 0755 src/litecoind $PKG/usr/bin/litecoind
+
+install -m 0644 src/qt/res/icons/bitcoin.png $PKG/usr/share/pixmaps/litecoin.png #doh
+install -m 0644 $CWD/litecoin-qt.desktop $PKG/usr/share/applications
+
+# Strip binaries:
+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 doc/README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+
+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
@@ -0,0 +1,11 @@
+PRGNAM="litecoin"
+VERSION="git101012"
+HOMEPAGE="http://www.litecoin.org"
+DOWNLOAD="git://github.com/litecoin-project/litecoin.git"
+MD5SUM=""
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="qrencode"
+MAINTAINER="nomnombtc"
+EMAIL="nomnombtc@arcor.de"
+APPROVED=""
View
@@ -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------------------------------------------------------|
+litecoin: Litecoin (P2P electronic cash system)
+litecoin:
+litecoin: Litecoin aims to be a coin that is like silver to Bitcoin's gold.
+litecoin: It manages to maintain the unique traits and attributes of Bitcoin,
+litecoin: while adding to the mixture CPU-specific mining and a 2.5 minute
+litecoin: block rate. Litecoin uses Scrypt as a proof-of-work scheme.
+litecoin: Scrypt uses the low-latency cache memory of modern processors to
+litecoin: provide greater hash-speeds on CPUs in comparison to GPUs.
+litecoin:
+litecoin: Project Website: http://www.litecoin.org
+litecoin:

0 comments on commit e2629b5

Please sign in to comment.