File: deb.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 (46 lines) | stat: -rwxr-xr-x 753 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
42
43
44
45
46
#!/bin/bash

set -e -x

cd "$(dirname "$0")"

type ruby || {
  apt install -y ruby
}

type git || {
  apt install -y git
}

type python3 || {
  apt install -y python3
  apt install -y python3-pip
  apt install -y python3-pkg-resources
  apt install -y python3-setuptools
  apt install -y python3-wheel
  apt install -y python3-packaging
}

type python || {
  apt install -y python-is-python3
}

type ar || {
  apt install -y binutils
}

export PATH="$HOME/.local/share/gem/ruby/3.1.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 deb -d python3-yaml --python-scripts-executable=/usr/bin/python3 setup.py

mv *.deb ..