1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-28 07:08:14 +00:00

Merge pull request #395 from zyga/master

Add snapcraft packaging
This commit is contained in:
Calvin Rose 2020-05-15 19:04:26 -04:00 committed by GitHub
commit 4be3d66a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

27
snapcraft.yaml Normal file
View File

@ -0,0 +1,27 @@
name: janet
adopt-info: janet
summary: functional and imperative programming language and bytecode interpreter
description: |
**Janet** is a functional and imperative programming language and bytecode interpreter. It is a
modern lisp, but lists are replaced
by other data structures (arrays, tables (hash table), struct (immutable hash table), tuples).
The language also supports bridging to native code written in C, meta-programming with macros, and bytecode assembly.
base: core18
confinement: classic
grade: stable
apps:
janet:
command: usr/bin/janet
adapter: none
jpm:
command: usr/bin/jpm
adapter: none
parts:
janet:
plugin: make
source: .
make-parameters: [PREFIX=/usr]
build-packages: [build-essential]
override-build: |
snapcraftctl build
snapcraftctl set-version "$($SNAPCRAFT_PART_INSTALL/usr/bin/janet -e '(print "Version: " janet/version)' | awk '{ print $2 }')"