summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2012-09-18 14:54:07 +0200
committer Robby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:38 -0500
commitd2461bb6e70f657e7a586d635ed8a24ad0ff9074 (patch)
tree5f01335c2fa6969cb6eec30d8b120f67af0562b0 /network
parent0fbf13fab850b34f3b728e37531aa40ec23842d3 (diff)
downloadslackbuilds-d2461bb6e70f657e7a586d635ed8a24ad0ff9074.tar.gz
slackbuilds-d2461bb6e70f657e7a586d635ed8a24ad0ff9074.tar.xz
network/identicurse: Updated for version 0.9.
Added auto pyhton version detection. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/identicurse/identicurse.SlackBuild20
-rw-r--r--network/identicurse/identicurse.info8
2 files changed, 17 insertions, 11 deletions
diff --git a/network/identicurse/identicurse.SlackBuild b/network/identicurse/identicurse.SlackBuild
index 045f8c49bc..ba97487d47 100644
--- a/network/identicurse/identicurse.SlackBuild
+++ b/network/identicurse/identicurse.SlackBuild
@@ -6,12 +6,12 @@
# Based on dateutil slackbuild by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=identicurse
-VERSION=0.7.3
+VERSION=${VERSION:-0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
#VERSIONMIN=3a
-SRCVERSION=$(echo $VERSION | cut -f1-2 -d.)
+#SRCVERSION=$(echo $VERSION | cut -f1-2 -d.)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,14 +36,19 @@ else
LIBDIRSUFFIX=""
fi
+PYTHONSITEPKG=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')")
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVERSION
+#rm -rf $PRGNAM-$SRCVERSION
+#tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+#cd $PRGNAM-$SRCVERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$SRCVERSION
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -65,9 +70,10 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-#move config.json and README to where identicurse expects them and remove /usr/identicurse dir
-mv $PKG/usr/identicurse/config.json $PKG/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages/identicurse/
-mv $PKG/usr/identicurse/README $PKG/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages/identicurse/
+# move config.json and README where identicurse expects them
+# and remove /usr/identicurse dir
+mv $PKG/usr/identicurse/config.json $PKG/usr/identicurse/README \
+ $PKG$PYTHONSITEPKG/identicurse
rmdir $PKG/usr/identicurse
cd $PKG
diff --git a/network/identicurse/identicurse.info b/network/identicurse/identicurse.info
index 5ad1a06183..9070f8987e 100644
--- a/network/identicurse/identicurse.info
+++ b/network/identicurse/identicurse.info
@@ -1,10 +1,10 @@
PRGNAM="identicurse"
-VERSION="0.7.3"
+VERSION="0.9"
HOMEPAGE="http://identicurse.net"
-DOWNLOAD="http://identicurse.net/release/0.7/identicurse-0.7.3.tar.bz2"
-MD5SUM="3a9e54ddc32c4e93195d84a7b4041186"
+DOWNLOAD="http://identicurse.net/release/0.9/identicurse-0.9.tar.bz2"
+MD5SUM="801b89ec58c38365bbe5a39203aa99e5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pysetuptools"
+REQUIRES="distribute"
MAINTAINER="Andrew Conway"
EMAIL="nalumc[at]gmail[dot]com"