File: opensuse.sh

package info (click to toggle)
crazy-complete 0.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,404 kB
  • sloc: python: 7,949; sh: 4,636; makefile: 74
file content (41 lines) | stat: -rwxr-xr-x 842 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash

FPM=fpm.ruby3.4

set -e

cd "$(dirname "$0")"

type ruby || {
  zypper -n --gpg-auto-import-keys install --no-recommends ruby
}

type git || {
  zypper -n --gpg-auto-import-keys install --no-recommends git
}

type rpmbuild || {
  zypper -n --gpg-auto-import-keys install --no-recommends rpm-build
}

type python3 || {
  zypper -n --gpg-auto-import-keys install --no-recommends python3
}

zypper -n --gpg-auto-import-keys install --no-recommends python3-setuptools python3-pyaml

export PATH="$HOME/.local/share/gem/ruby/3.4.0/bin/:$PATH"

type $FPM || {
  gem install --user-install fpm
}

rm -rf crazy-complete

git clone https://github.com/crazy-complete/crazy-complete

cd crazy-complete

$FPM -s python -t rpm -d python3-pyyaml --python-bin /usr/bin/python3 --python-scripts-executable /usr/bin/python3 setup.py

mv *.rpm ..