diff options
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 |
commit | d2461bb6e70f657e7a586d635ed8a24ad0ff9074 (patch) | |
tree | 5f01335c2fa6969cb6eec30d8b120f67af0562b0 | |
parent | 0fbf13fab850b34f3b728e37531aa40ec23842d3 (diff) |
network/identicurse: Updated for version 0.9.
Added auto pyhton version detection.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | network/identicurse/identicurse.SlackBuild | 20 | ||||
-rw-r--r-- | network/identicurse/identicurse.info | 8 |
2 files changed, 17 insertions, 11 deletions
diff --git a/network/identicurse/identicurse.SlackBuild b/network/identicurse/identicurse.SlackBuild index 045f8c49bc309..ba97487d47374 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 5ad1a06183d06..9070f8987ec8d 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" |