# Description: Select Operation - query rectangular selections and print regions to stdout # URL: https://github.com/naelstrof/slop # Maintainer: Cory Burgett, cmburget at gmail dot com # Depends on: cmake xorg-libxext glew glu glm icu name=slop version=7.6 release=2 source=(https://github.com/naelstrof/slop/archive/v$version.tar.gz) build() { cd $name-$version # an icu update now requires c++17, which means everything that uses # it now requires c++17; however, slop's build was hardcoded for c++11; # an alternative is to tell cmake -DSLOP_UNICODE=false # but i don't want to break anything in a release bump. sed -re 's/^(.+ CXX_STANDARD) 11(.*)/\1 17\2/' -i CMakeLists.txt mkdir build && cd build cmake .. \ -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_INSTALL_PREFIX=/usr make make DESTDIR=$PKG install }