name: cuberite
version: 0  # the version of the snap
summary: Performant open source Minecraft server written in C++.
description: This is my-snap's description  # a longer description for the snap
confinement: strict

apps:
    cuberite:
        command: bin/Cuberite.wrapper
        daemon: forking
        plugs:
            - network
            - network-bind
            - log-observe

parts:
    cuberite:
        plugin: cmake
        source: https://github.com/cuberite/cuberite.git
        configflags:
            - -DCMAKE_BUILD_TYPE=Release
            - -DCROSSCOMPILE=ON
        build-packages:
            - gcc
            - g++
    release:
        after: [cuberite]
        plugin: copy
        source: parts/cuberite/src/Server
        files:
            "*": "."
    wrapper:
        plugin: copy
        source: .
        files:
            Cuberite.wrapper: bin/Cuberite.wrapper

name: cuberite
version: 20160729
summary: Performant open source Minecraft server written in C++.
description: |
    Cuberite is a Minecraft-compatible multiplayer game server that is written in C++ and designed to be efficient with memory and CPU, as well as having a flexible Lua Plugin API. Cuberite is compatible with the vanilla Minecraft client.

    Cuberite can run on Windows, *nix and Android operating systems. This includes Android phones and tablets as well as Raspberry Pis.

    We currently support Release 1.8 and 1.9 Minecraft protocol versions.
confinement: strict

apps:
    cuberite:
        command: bin/Cuberite.wrapper
        daemon: forking
        plugs:
            - network
            - network-bind
            - log-observe

parts:
    cuberite:
        plugin: cmake
        source: https://github.com/cuberite/cuberite.git
        configflags:
            - -DCMAKE_BUILD_TYPE=Release
            - -DCROSSCOMPILE=ON
        build-packages:
            - gcc
            - g++
    release:
        after: [cuberite]
        plugin: copy
        source: parts/cuberite/src/Server
        files:
            "*": "."
    wrapper:
        plugin: copy
        source: .
        files:
            Cuberite.wrapper: bin/Cuberite.wrapper

Fix the version and description; unfortunately, cuberite doesn't currently have tagged releases, so there is no reliable version number.
Fix the version and description; unfortunately, cuberite doesn't currently have tagged releases, so there is no reliable version number.
