kxepal commented on a change in pull request #460: Change snap packaging to 
build from source
URL: https://github.com/apache/couchdb/pull/460#discussion_r106920400
 
 

 ##########
 File path: snapcraft.yaml
 ##########
 @@ -0,0 +1,81 @@
+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: stable
+
+apps:
+    server:
+        daemon: simple
+        command: rel/couchdb/bin/snap_run
+        plugs: [network-bind, process-control, mount-observe]
+    couchdb:
+        command: rel/couchdb/bin/snap_run
+        plugs: [network-bind]
+parts:
+    couchdb: 
+        plugin: make
+        source: .
+        prepare: |
+          ./configure --disable-docs
+        build: |
+          make release
+          cp -ra ./rel $SNAPCRAFT_PART_INSTALL
+          cp -ra ./bin $SNAPCRAFT_PART_INSTALL
+        build-packages:
+          - binutils
+          - libc6-dev
+          - gcc
+          - g++
+          - make
+          - erlang-dev
+          - erlang-base-hipe
+          - erlang-reltool
+          - libcurl4-openssl-dev
+          - libmozjs185-dev
+          - libnspr4-dev
+          - libicu-dev
+          - icu-devtools
+          # For erlang/rebar processing
+          - erlang-nox
+          - erlang-os-mon
+          - erlang-syntax-tools
+          # For fauxton
+          - nodejs-dev
+          - nodejs-legacy
 
 Review comment:
   Wonder why two nodejs here.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to