cd($this->source_dir) ->exec( './configure ' . '--enable-static --disable-shared ' . '--prefix=' ) ->exec('make clean'); FileSystem::replaceFileRegex($this->source_dir . '/Makefile', '/MYLIBS = libqdbm.a.*/m', 'MYLIBS = libqdbm.a'); shell()->cd($this->source_dir) ->exec("make -j{$this->builder->concurrency}" . ($this instanceof MacOSLibraryBase ? ' mac' : '')) ->exec('make install DESTDIR=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['qdbm.pc']); } }