diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-07 15:36:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-07 23:04:38 +0700 |
commit | 096ed059c39c9fee6ef8b2821091532cd31361e3 (patch) | |
tree | 3890d87a677fadf8710e9e63f2df8fcd3973fa2a /academic/mkDSSP | |
parent | bf8cac8e5def1376afa53fa1eb56c06f9f65217e (diff) | |
download | slackbuilds-096ed059c39c9fee6ef8b2821091532cd31361e3.tar.gz |
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>
Diffstat (limited to 'academic/mkDSSP')
-rw-r--r-- | academic/mkDSSP/mkDSSP.SlackBuild | 40 | ||||
-rw-r--r-- | academic/mkDSSP/mkDSSP.info | 6 |
2 files changed, 24 insertions, 22 deletions
diff --git a/academic/mkDSSP/mkDSSP.SlackBuild b/academic/mkDSSP/mkDSSP.SlackBuild index 66793c86d7..d5461df266 100644 --- a/academic/mkDSSP/mkDSSP.SlackBuild +++ b/academic/mkDSSP/mkDSSP.SlackBuild @@ -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 - -make -make install DESTDIR=$PKG mandir=$PKG/usr/man +sed -i "s|CMAKE_INSTALL_DATADIR}/man|CMAKE_INSTALL_PREFIX}/man|" CMakeLists.txt + +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 \ diff --git a/academic/mkDSSP/mkDSSP.info b/academic/mkDSSP/mkDSSP.info index 43a6d3a224..494233066f 100644 --- a/academic/mkDSSP/mkDSSP.info +++ b/academic/mkDSSP/mkDSSP.info @@ -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" |