Giter Club home page Giter Club logo

orca-pkgbuild's Introduction

Arch Linux package file for Orca

This PKGBUILD file installs the Orca program with pacman and makes it available on the system. The main purpose of this PKGBUILD is to track the files installed with pacman and automatically apply some patches. To make use of this PKGBUILD you first have to download the dynamically linked Orca distribution from the Orca forum. Due to Orca's EULA no automatic download will be provided.

RPATH fixing

To make sure the Orca binaries pick up the liborca_*.so library correctly, an runtime path is set for each binary by using patchelf. This is important since this PKGBUILD installs into /opt/orca/ rather than /usr.

Generally, it is a good idea to patch a dynamically linked Orca installation to ensure the liborca_*.so can always be found:

for f in ./orca* ./autoci*; do
  patchelf --set-rpath '$ORIGIN' "${f}"
done

Orca function

Since Orca must be called with the full path to use MPI parallelization, a convenience function is installed which defines an orca function to always call the Orca binary with the full path.

orca () {
  /opt/orca/bin/orca "$@"
}

Module file

Additionally a module file for lmod is provided. If the lmod package is installed the Orca binaries are not added to the PATH by default. The module file also sets a function to always call the Orca binary with the full path:

local prefix = pathJoin("/opt/orca")

set_shell_function(
  "orca",
  pathJoin(prefix, "bin", "orca") .. " \"$@\"",
  pathJoin(prefix, "bin", "orca") .. " $*")

orca-pkgbuild's People

Contributors

awvwgk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

chrinide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.