Add support for building a snap of fd

This commit is contained in:
Alan Pope 2018-11-12 14:50:04 +00:00 committed by David Peter
parent f09f038bd2
commit 92b5c9f71e
2 changed files with 40 additions and 0 deletions

11
snap/.snapcraft/state Normal file
View file

@ -0,0 +1,11 @@
!GlobalState
assets:
build-packages: [libmpc3=1.0.3-1, libmpx0=5.4.0-6ubuntu1~16.04.10, libgcc-5-dev=5.4.0-6ubuntu1~16.04.10,
linux-libc-dev=4.4.0-138.164, libc6-dev=2.23-0ubuntu10, cpp-5=5.4.0-6ubuntu1~16.04.10,
binutils=2.26.1-1ubuntu1~16.04.7, 'cpp=4:5.3.1-1ubuntu1', libitm1=5.4.0-6ubuntu1~16.04.10,
'gcc=4:5.3.1-1ubuntu1', libcilkrts5=5.4.0-6ubuntu1~16.04.10, libasan2=5.4.0-6ubuntu1~16.04.10,
libquadmath0=5.4.0-6ubuntu1~16.04.10, libisl15=0.16.1-1, libtsan0=5.4.0-6ubuntu1~16.04.10,
libubsan0=5.4.0-6ubuntu1~16.04.10, gcc-5=5.4.0-6ubuntu1~16.04.10, liblsan0=5.4.0-6ubuntu1~16.04.10,
libgomp1=5.4.0-6ubuntu1~16.04.10, manpages-dev=4.04-2, libc-dev-bin=2.23-0ubuntu10,
libatomic1=5.4.0-6ubuntu1~16.04.10, libcc1-0=5.4.0-6ubuntu1~16.04.10]
build-snaps: []

29
snap/snapcraft.yaml Normal file
View file

@ -0,0 +1,29 @@
name: fd
version: git
summary: "A simple, fast and user-friendly alternative to 'find'"
description: |
fd is a simple, fast and user-friendly alternative to find.
- While it does not seek to mirror all of find's powerful functionality, it provides sensible (opinionated) defaults for 80% of the use cases.
Features
Convenient syntax: fd PATTERN instead of find -iname '*PATTERN*'.
Colorized terminal output (similar to ls).
It's fast (see benchmarks below).
Smart case: the search is case-insensitive by default. It switches to case-sensitive if the pattern contains an uppercase character*.
Ignores hidden directories and files, by default.
Ignores patterns from your .gitignore, by default.
Regular expressions.
Unicode-awareness.
The command name is 50% shorter* than find :-).
Parallel command execution with a syntax similar to GNU Parallel.
grade: stable
confinement: classic
parts:
fd:
plugin: rust
source: ./
apps:
fd:
command: bin/fd