Skip to content
Permalink
Browse files
Make it work with modern snapcraft
  • Loading branch information
ralsina committed Oct 20, 2016
1 parent 8a60c09 commit ce193d760b39b0b02d6a66d54aba9a347abf6315
Showing with 11 additions and 10 deletions.
  1. +1 −4 snapcraft/stable/build.sh
  2. +1 −1 snapcraft/stable/script/nikola.sh
  3. +9 −5 snapcraft/stable/snapcraft.yaml
@@ -1,8 +1,5 @@
#!/bin/sh
snapcraft pull
pip3 wheel --wheel-dir parts/nikola/packages --disable-pip-version-check --no-index --find-links parts/nikola/packages pillow
snapcraft build
snapcraft stage
find prime/ -name '*.a' -exec rm {} \;
snapcraft snap
snapcraft

@@ -18,4 +18,4 @@ export LC_ALL=$APPLOC
export LANG=$APPLOC
export LANGUAGE=${APPLANG%_*}

$SNAP/usr/bin/nikola "$@"
$SNAP/bin/nikola "$@"
@@ -7,14 +7,18 @@ grade: stable

apps:
nikola:
command: nikola
command: nikola.sh
plugs: [network, network-bind, home]

parts:
nikola-script:
plugin: dump
source: script
nikola:
source: git://github.com/getnikola/nikola.git
source-tag: v7.8.1
stage-packages:
- locales
- libc-bin
plugin: python
python-packages:
- nikola
- pillow
python-version: python3
build-packages: [libjpeg-dev]

0 comments on commit ce193d7

Please sign in to comment.