summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris MacNaughton <chris.macnaughton@canonical.com>2017-04-20 21:01:34 +0200
committerAndrew Gallant <jamslam@gmail.com>2017-05-04 08:30:22 -0400
commit20f7d9b3a209eee73dc1f1d3437f7c7e05326027 (patch)
tree05322185f69c3c2a35b107910f29bd3f246df39e
parent362abed44a000da3b31e5dd027e16eb4e36e1bed (diff)
Add snapcraft.yaml
[Snapcraft](https://snapcraft.io/) makes Linux packaging very simple in a cross-distro way. This adds the snapcraft.yaml file to setup a snap of ripgrep
-rw-r--r--.gitignore8
-rw-r--r--snapcraft.yaml15
2 files changed, 23 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index be83b91c..37c45afd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,11 @@ target
/ignore/Cargo.lock
/termcolor/Cargo.lock
/wincolor/Cargo.lock
+
+# Snapcraft files
+stage
+prime
+parts
+*.snap
+*.pyc
+ripgrep*_source.tar.bz2 \ No newline at end of file
diff --git a/snapcraft.yaml b/snapcraft.yaml
new file mode 100644
index 00000000..2d63a050
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,15 @@
+name: ripgrep # you probably want to 'snapcraft register <name>'
+version: '0.5.1' # just for humans, typically '1.2+git' or '1.3.2'
+summary: Fast file searcher # 79 char long summary
+description: |
+ ripgrep combines the usability of The Silver Searcher with the raw speed of grep.
+grade: stable # must be 'stable' to release into candidate/stable channels
+confinement: classic # use 'strict' once you have the right plugs and slots
+parts:
+ ripgrep:
+ plugin: rust
+ source: .
+apps:
+ rg:
+ command: env PATH=$SNAP/bin:$PATH rg
+ aliases: [rg] \ No newline at end of file