Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
Open
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
32 changes: 32 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: serpent
version: master
summary: Serpent compiler
description: |
Serpent is one of the high-level programming languages used to write
Ethereum contracts. The language, as suggested by its name, is designed to
be very similar to Python; it is intended to be maximally clean and simple,
combining many of the efficiency benefits of a low-level language with
ease-of-use in programming style, and at the same time adding special
domain-specific features for contract programming.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict

apps:
serpent:
command: serpent
plugs: [home]

parts:
serpent-make:
source: .
plugin: make
prepare: |
sed -i 's#/usr/local#$(DESTDIR)/usr/local#g' Makefile
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/local/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/local/lib
build-packages: [g++]
serpent-python:
source: .
plugin: python
after: [serpent-make]