You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/07/27 23:00:54 UTC

[couchdb-pkg] branch master updated: Refine snap build process

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git


The following commit(s) were added to refs/heads/master by this push:
     new 84c30b0  Refine snap build process
84c30b0 is described below

commit 84c30b0c0799fa35f1e5e9b90d2868c6617954c6
Author: Joan Touzet <wo...@apache.org>
AuthorDate: Thu Jul 27 16:00:39 2017 -0700

    Refine snap build process
---
 .gitignore          |  5 +++++
 Makefile            |  3 +++
 README.md           | 12 ++++++++++++
 snap/snapcraft.yaml |  2 ++
 4 files changed, 22 insertions(+)

diff --git a/.gitignore b/.gitignore
index 23c2c82..d5dc619 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,8 @@ repo/dists
 repo/pool
 pkgs/
 couchdb/
+couchdb_2.0_amd64.snap
+parts/
+prime/
+snap/.snapcraft/
+stage/
diff --git a/Makefile b/Makefile
index 8724e07..686b81f 100644
--- a/Makefile
+++ b/Makefile
@@ -123,3 +123,6 @@ copy-pkgs:
 	-cp ../rpmbuild/RPMS/x86_64/*.rpm pkgs/$(PLATFORM)
 	-cp ../couchdb/*deb pkgs/$(PLATFORM)
 	-chmod -R a+rwx pkgs/$(PLATFORM)
+
+clean:
+	rm -rf couchdb_2.0_amd64.snap parts prime snap/.snapcraft stage
diff --git a/README.md b/README.md
index c45fb41..0454cbf 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,18 @@ or
 
 Packages will be placed in the `pkgs/` subdirectory.
 
+# Building snaps
+
+## Prerequisites
+
+1. Ubuntu 16.04
+1. `sudo apt install snapd snapcraft`
+
+## How to do it
+
+1. Edit `snap/snapcraft.yaml` to point to the correct tag (e.g. `2.1.0`)
+1. `snapcraft`
+
 # Feedback, Issues, Contributing
 
 General feedback is welcome at our [user][1] or [developer][2] mailing lists.
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 54ca988..e09f194 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -16,8 +16,10 @@ apps:
 parts:
     couchdb: 
         plugin: make
+        #source: http://www-us.apache.org/dist/couchdb/source/2.0.0/apache-couchdb-2.0.0.tar.gz
         source: https://github.com/apache/couchdb.git
         source-type: git
+        source-tag: 2.1.0
         prepare: |
           ./configure --disable-docs
         build: |

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].