Skip to content

Instantly share code, notes, and snippets.

@aarroyoc
Created January 10, 2020 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarroyoc/e0d6d746d5424681b17367e34735634f to your computer and use it in GitHub Desktop.
Save aarroyoc/e0d6d746d5424681b17367e34735634f to your computer and use it in GitHub Desktop.
PCC Snap

Building

sudo snap install snapcraft --classic
snapcraft --use-lxd
sudo snap install --devmode --dangerous *.snap
name: pcc
version: 1.0.0-git
summary: P language interpreter
description: |
P language interpreter in C (Flex and Bison).
confinement: devmode
base: core18
parts:
pcc:
plugin: dump
override-build: |
cd pcc-master
make
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp pcc $SNAPCRAFT_PART_INSTALL/bin/
source-type: zip
source: https://github.com/aarroyoc/pcc/archive/master.zip
build-packages:
- g++
- make
- flex
- bison
apps:
pcc:
command: pcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment