# 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=2 source=(https://raw.githubusercontent.com/slackalaxy/sources/main/bpp-utils-$version.tar.gz) build() { cd bpp-utils-$version # TODO: keep an eye on this, when support for CMAKE < 3.10 is dropped sed -i 's:CMAKE_MINIMUM_REQUIRED(VERSION 2.6):CMAKE_MINIMUM_REQUIRED(VERSION 3.30):' CMakeLists.txt # 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 sed -i "s:/include/:/include/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 .. sed -i 's:{CMAKE_INSTALL_PREFIX}/lib:{CMAKE_INSTALL_PREFIX}/lib/Bpp1:g' Utils/cmake_install.cmake sed -i 's:{CMAKE_INSTALL_PREFIX}/include:{CMAKE_INSTALL_PREFIX}/include/Bpp1:g' Utils/cmake_install.cmake make make DESTDIR=$PKG install }