# Description: Bio++ 1 Utils Library # URL: http://biopp.univ-montp2.fr/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: gcc5 name=bpp1-utils version=1.5.0 release=1 source=(https://raw.githubusercontent.com/slackalaxy/sources/main/bpp-utils-$version.tar.gz) build() { cd bpp-utils-$version # build fails with gcc 12 export CXX=g++-5 # This is needed for vCAPS to find its libraries at runtime. Thanks Urchlay! LIBDIRPATH="-Wl,-rpath,/usr/lib/Bpp1" # Use custom install place, so libs can coexist with latest Bio++ sed -i "s:/lib/:/lib/Bpp1/:g" Utils.spec mkdir -p build cd build cmake \ -D CMAKE_CXX_FLAGS:STRING="$CFLAGS $LIBDIRPATH" \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release .. # More about word boundary and sed: # https://linuxize.com/post/how-to-use-sed-to-find-and-replace-string-in-files/ sed -i "s:/lib\b:/lib/Bpp1:g" Utils/cmake_install.cmake make make DESTDIR=$PKG install }