Skip to content

Commit

Permalink
drone-build-raspbian.sh: Drop outdated hack (Rasbats#199).
Browse files Browse the repository at this point in the history
  • Loading branch information
leamas committed Oct 10, 2021
1 parent 75ce4e5 commit d7405c0
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions ci/drone-build-raspbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,29 @@ sudo apt-get -q --allow-unauthenticated install -f

git fetch --all --tags

# Temporary fix until 3.19 is available as a pypi package
# 3.19 is needed: https://gitlab.kitware.com/cmake/cmake/-/issues/20568
url='https://dl.cloudsmith.io/public/alec-leamas/opencpn-plugins-stable/deb/debian'
wget $url/pool/${OCPN_TARGET/-*/}/main/c/cm/cmake-data_3.19.3-0.1_all.deb
wget $url/pool/${OCPN_TARGET/-*/}/main/c/cm/cmake_3.19.3-0.1_armhf.deb
sudo apt install ./cmake_3.19.3-0.1_armhf.deb ./cmake-data_3.19.3-0.1_all.deb
# Initiate python setup, install cryptography and ssh-client for git-push.
apt-get install -q python3-pip python3-cryptography openssh-client

# Latest pip 21.0.0 requires python 3.6+, we have only 3.5:
python3 -m pip install --user -q --force-reinstall pip==20.3.4 setuptools wheel

pip3 install --user scikit-build
pip3 install --user cmake


## # Temporary fix until 3.19 is available as a pypi package
## # 3.19 is needed: https://gitlab.kitware.com/cmake/cmake/-/issues/20568
## url='https://dl.cloudsmith.io/public/alec-leamas/opencpn-plugins-stable/deb/debian'
## wget $url/pool/${OCPN_TARGET/-*/}/main/c/cm/cmake-data_3.19.3-0.1_all.deb
## wget $url/pool/${OCPN_TARGET/-*/}/main/c/cm/cmake_3.19.3-0.1_armhf.deb
## sudo apt install ./cmake_3.19.3-0.1_armhf.deb ./cmake-data_3.19.3-0.1_all.deb

rm -rf build; mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j $(nproc) VERBOSE=1 tarball
ldd app/*/lib/opencpn/*.so

# Initiate python setup, install cryptography and ssh-client for git-push.
apt-get install -q python3-pip python3-cryptography openssh-client

# Latest pip 21.0.0 requires python 3.6+, we have only 3.5:
python3 -m pip install --user -q --force-reinstall pip==20.3.4 setuptools wheel

# Install cloudsmith-cli for upload script.
python3 -m pip install --user -q cloudsmith-cli

0 comments on commit d7405c0

Please sign in to comment.