diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 7fabc6e..e139818 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -18,7 +18,15 @@ parts: plugin: nil override-pull: | apt update - apt install build-essential libssl-dev libffi-dev python3-dev cargo rustc clang + apt install build-essential libssl-dev libffi-dev python3-dev cargo clang pkg-config + install-rust: + plugin: nil + override-pull: | + if [ "$SNAP_ARCH" = "armhf" ]; then + apt-get update + apt-get -y install curl + curl https://sh.rustup.rs -sSf | sh -s -- -y + fi certbot-dns-wedos: plugin: python source: . @@ -27,6 +35,17 @@ parts: snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d '"[:space:]'` build-environment: - SNAP_BUILD: "True" + build-packages: + - gcc + - git + - build-essential + - libffi-dev + - libssl-dev + - cargo + - clang + - pkg-config + - python3-dev + after: [install-rust, install-lib] certbot-metadata: plugin: dump source: .