mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
academic/mkDSSP: Updated for version 4.0.3, switch to cmake.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
bf8cac8e5d
commit
096ed059c3
2 changed files with 23 additions and 21 deletions
|
@ -25,13 +25,12 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=mkDSSP
|
||||
VERSION=${VERSION:-4.0_git6338c83}
|
||||
VERSION=${VERSION:-4.0.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
SRCNAM=dssp
|
||||
COMMIT="6338c836b631e87fc03bd147ec67d27ea72f6f70"
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -72,9 +71,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM-$COMMIT
|
||||
tar xvf $CWD/$SRCNAM-$COMMIT.tar.gz
|
||||
cd $SRCNAM-$COMMIT
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -82,20 +81,20 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-revision \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
sed -i "s|CMAKE_INSTALL_DATADIR}/man|CMAKE_INSTALL_PREFIX}/man|" CMakeLists.txt
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG mandir=$PKG/usr/man
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
# Some programs (like aline) expect the binary to be called just "dssp"
|
||||
cd $PKG/usr/bin
|
||||
|
@ -105,6 +104,9 @@ cd -
|
|||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
LICENSE README.md \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="mkDSSP"
|
||||
VERSION="4.0_git6338c83"
|
||||
VERSION="4.0.3"
|
||||
HOMEPAGE="https://swift.cmbi.umcn.nl/gv/dssp/DSSP_3.html"
|
||||
DOWNLOAD="https://github.com/PDB-REDO/dssp/archive/6338c83/dssp-6338c836b631e87fc03bd147ec67d27ea72f6f70.tar.gz"
|
||||
MD5SUM="c4616197bb510c36f1c4dcce018e870d"
|
||||
DOWNLOAD="https://github.com/PDB-REDO/dssp/archive/v4.0.3/dssp-4.0.3.tar.gz"
|
||||
MD5SUM="fac80f6b2ca0120c414510b420dc5b6a"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="libcifpp"
|
||||
|
|
Loading…
Reference in a new issue