Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 41 lines (26 sloc) 1019 Bytes
#! /bin/sh
# https://github.com/ugeneunipro/ugene/archive/36.0/ugene-36.0.tar.gz
# COOKIE=$(mcookie|cut -c-8); grep -v V_GREP_ME $0 > /dev/shm/runme-$COOKIE.sh ; sleep 1; exec bash /dev/shm/runme-$COOKIE.sh
# TESTING=1
set -xe
PKG=ugene
VERSION=36.0
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
export XDG_DATA_DIRS=$PREFIX/share\${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
NPROC=$(( $(nproc) * 4 / 5 + 1 ))
test -e ugene-$VERSION.tar.gz || wget --no-verbose https://github.com/ugeneunipro/ugene/archive/36.0/ugene-$VERSION.tar.gz
test -d ugene-$VERSION || tar -xf ugene-$VERSION.tar.gz
cd ugene-$VERSION
qmake INSTALL_PREFIX=$PREFIX -recursive
make -j $NPROC; make install
exit