File: cip-before-install

package info (click to toggle)
libffi-checklib-perl 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 520; sh: 20; makefile: 2
file content (25 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -ex

if echo $CIP_TAG | grep -q -- -alpine ; then
  echo alpine
  cip sudo apk add cmake
  cip sudo apk add libffi-dev
  cip sudo apk add yaml-dev
elif  echo $CIP_TAG | grep -q -- -centos ; then
  echo CentOS
  cip sudo yum install libffi-devel libyaml-devel -y
elif echo $CIP_TAG | grep -q -- -fedora ; then
  echo Fedora
  cip sudo yum install cmake libffi-devel libyaml-devel -y
else
  cip sudo apt-get update
  cip sudo apt-get -y install libffi-dev libyaml-dev
fi

cip exec cpanm -n FFI::Platypus

if [ $CIP_TAG != "5.8" ]; then
  cip exec cpanm -n Test2::Tools::Process
fi