Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: zig
version: git
summary: The Zig Programming Language
description: Zig is an open-source programming language designed for robustness, optimality, and clarity.
grade: devel
confinement: classic

apps:
zig:
command: ./bin/zig

parts:
install-llvm:
# Workaround for installing LLVM 6.0 build packages, which do not exist in
# the aptitude repositories for Ubuntu 16.04. This can be cleaned up once
# Snapcraft supports custom repositories or an Ubuntu 18.04 base layer.
plugin: nil
override-pull: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
add-apt-repository -yu "deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
apt install -y libclang-6.0-dev liblld-6.0-dev llvm-6.0-dev
zig:
after: [install-llvm]
plugin: cmake
build-packages:
- g++
- libxml2-dev
- zlib1g-dev
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/
prime:
- bin/zig
- lib/zig/*