From 0d946745f9a34e76e0459f53eca83a141d6d0bd7 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Wed, 28 Jun 2017 03:30:37 +0000 Subject: [PATCH] Add the packaging metadata to build the serpent snap --- snap/snapcraft.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..0dd8bae --- /dev/null +++ b/snap/snapcraft.yaml @@ -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]