mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
network/identicurse: Updated for version 0.9.
Added auto pyhton version detection. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
0fbf13fab8
commit
d2461bb6e7
2 changed files with 17 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue