Browse Source

xap/ugene: Upgraded to ugene-1.7.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
c7ef4a31dc
  1. 1
      xap/ugene/ugene-1.6.1.tar.gz.sha1
  2. 1
      xap/ugene/ugene-1.7.0-src.tar.gz.sha1
  3. 25
      xap/ugene/ugene.SlackBuild

1
xap/ugene/ugene-1.6.1.tar.gz.sha1

@ -1 +0,0 @@
3ede8fa1ae922845a9aa76f049555d97ab1f7760 ugene-1.6.1.tar.gz

1
xap/ugene/ugene-1.7.0-src.tar.gz.sha1

@ -0,0 +1 @@
7efb04f92673e8db0e6756cc3cd42ea1438c7e54 ugene-1.7.0-src.tar.gz

25
xap/ugene/ugene.SlackBuild

@ -26,14 +26,14 @@
# Source package infos
NAMESRC=${NAMESRC:-ugene}
VERSION=${VERSION:-1.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
VERSION=${VERSION:-1.7.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.gz}
WGET=${WGET:-http://ugene.unipro.ru/downloads/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-ugene}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -63,22 +63,25 @@ fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 2)
# Compilation options
case "$ARCH" in
x86_64)
COMP_OPTS="CONFIG+=x64 INSTALL_LIBDIR=/usr/lib64"
;;
*)
COMP_OPTS=""
;;
esac
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
qmake CONFIG+=x64 INSTALL_MANDIR=/usr/man -r
qmake $COMP_OPTS INSTALL_MANDIR=/usr/man -r
make -j $JOBS
make install INSTALL_ROOT=$PKG
# Move binaries to lib64 if needed
# (I found no way to tell QMake to do the right thing)
if [ "x$ARCH" = xx86_64 ]; then
mv $PKG/usr/lib $PKG/usr/lib64
sed -i 's,/usr/lib/ugene,/usr/lib64/ugene,' $PKG/usr/bin/{con,u}gene
fi
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 COPYRIGHT LICENSE $PKG/usr/doc/$NAME

Loading…
Cancel
Save