name: couchdb
version: 2.0
summary: Document based database
description: CouchDB is a database that completely embraces the web. Store your data with JSON documents. Access your documents and query your indexes with your web browser, via HTTP. Index, combine, and transform your documents with JavaScript. 
confinement: strict
grade: devel

apps:
    couchdb:
        daemon: simple
        command: couchdb
parts:
    couchdb: 
        source: https://git-wip-us.apache.org/repos/asf/couchdb.git
        source-type: git
        source-branch: developer-preview-2.0
        
        plugin: autotools
        configflags: [--prefix=/usr]
        install-via: prefix
        build-packages:
            - build-essential
            - erlang-base-hipe
            - erlang-dev
            - erlang-manpages
            - erlang-eunit
            - erlang-nox
            - libicu-dev
            - libmozjs185-dev
            - libcurl4-openssl-dev
            - pkg-config
            - npm
            - nodejs-legacy
        stage-packages:
            - erlang-base-hibe
            - erlang-crypto
            - erlang-eunit
            - erlang-inets
            - erlang-os-mon
            - erlang-public-key
            - erlang-ssl
            - erlang-syntax-tools
            - erlang-tools
            - erlang-xmerl
            - libc6
            - libcurl3
            - libgcc1
            - libicu55
            - libmozjs185-1.0
            - libstdc++6
        
