summaryrefslogtreecommitdiff
path: root/network/identicurse/identicurse.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-18 14:54:07 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:38 -0500
commitd2461bb6e70f657e7a586d635ed8a24ad0ff9074 (patch)
tree5f01335c2fa6969cb6eec30d8b120f67af0562b0 /network/identicurse/identicurse.SlackBuild
parent0fbf13fab850b34f3b728e37531aa40ec23842d3 (diff)
downloadslackbuilds-d2461bb6e70f657e7a586d635ed8a24ad0ff9074.tar.gz
network/identicurse: Updated for version 0.9.
Added auto pyhton version detection. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/identicurse/identicurse.SlackBuild')
-rw-r--r--network/identicurse/identicurse.SlackBuild20
1 files changed, 13 insertions, 7 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