You are not logged in.

#1 2017-03-22 01:10:35

OlzhasRakhimov
Member
Registered: 2017-03-22
Posts: 3

[REQUEST] scram

SCRAM is a probabilistic risk analysis tool (fault tree, etc.).
It's packaged in Debian Science, Fedora, Ubuntu.

The upstream: https://github.com/rakhimov/scram

I am an upstream developer and willing to help out volunteer packagers.

Thanks.

Offline

#2 2017-03-22 02:16:17

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [REQUEST] scram

This builds in a clean chroot, but I'm not sure about the dependencies and if it's build the right way. scram-gui shows only a blank window with one 'help' button.
Maybe someone else wants to take this PKGBUILD as a starting point...

pkgname=scram
pkgver=0.12.0
pkgrel=1
pkgdesc='Probabilistic risk analysis tool'
arch=('i686' 'x86_64')
url='https://github.com/rakhimov/scram'
license=('GPL3')
depends=('python' 'libxml++2.6' 'boost' 'qt5-tools')
makedepends=('cmake' 'git')
source=("git+https://github.com/rakhimov/scram.git#commit=77cf54d2e3d9b612b1fe9e1c27c0313d525623a6")
sha256sums=('SKIP')

prepare() {
  cd $pkgname
  git submodule update --init --recursive
  mkdir build
}

build() {
  cd $pkgname/build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd $pkgname/build
  make DESTDIR="$pkgdir" install
}

Offline

#3 2017-03-22 02:23:57

OlzhasRakhimov
Member
Registered: 2017-03-22
Posts: 3

Re: [REQUEST] scram

Thanks mis for starting the config so fast.
I should have mentioned that currently GUI and Tests shouldn't be packaged (no need for qt5 dependency),
so please add to the cmake flags the following:

-DBUILD_GUI=OFF -DBUILD_TESTS=OFF

Also, currently there's no use for the shared libraries. There's only one executable 'scram'.
The library may be omitted with:

-DBUILD_SHARED_LIBS=OFF -DINSTALL_LIBS=OFF

The full configuration example for Debian is available at: https://anonscm.debian.org/git/debian-s … scram.git/

There's also a man page and bash completion script in doc and scripts directories, respectively.

Thanks.

Offline

#4 2017-03-22 04:30:34

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [REQUEST] scram

pkgname=scram
pkgver=0.12.0
pkgrel=1
pkgdesc='Probabilistic risk analysis tool'
arch=('i686' 'x86_64')
url='https://scram-pra.org/'
license=('GPL3')
depends=('boost-libs' 'gperftools' 'libxml++2.6')
makedepends=('boost' 'cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rakhimov/scram/archive/$pkgver.tar.gz")
sha256sums=('ff7c38e0b40ada5472f9521817e2ff890ecc2803909e895772f92a4ea30d4c90')

build() {
  cd $pkgname-$pkgver
  mkdir -p build && cd build
  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_GUI=OFF \
    -DBUILD_TESTS=OFF \
    -DBUILD_SHARED_LIBS=OFF \
    -DINSTALL_LIBS=OFF
  make
}

package() {
  cd $pkgname-$pkgver
  make -C build DESTDIR="$pkgdir" install
  install -p -D -m 644 doc/scram.1 -t "$pkgdir/usr/share/man/man1/"
  install -p -D -m 644 scripts/scram.sh "$pkgdir/usr/share/bash-completion/completions/scram"
}

Offline

#5 2017-03-22 04:34:30

OlzhasRakhimov
Member
Registered: 2017-03-22
Posts: 3

Re: [REQUEST] scram

Awesome metak. I believe your config is complete.

Offline

Board footer

Powered by FluxBB