hstr/snap/snapcraft.yaml
2022-12-11 20:55:26 +01:00

50 lines
1.4 KiB
YAML

# snapcraft.yaml snap builder configuration
#
# Copyright (C) 2014-2022 Martin Dvorak <martin.dvorak@mindforger.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# https://docs.snapcraft.io/build-snaps/your-first-snap
#
name: hstr
base: core18 # build core on Ubuntu 18.04 LTS
version: git
grade: stable
summary: Suggest box like shell history completion
description: |
A command line utility that brings improved shell command completion
from the history. It aims to make completion easier and faster than Ctrl-r.
confinement: strict
apps:
hstr:
command: bin/hstr
plugs:
- home
parts:
hstr:
source: .
plugin: autotools
override-build: |
cd ./build/tarball && ./tarball-automake.sh && cd ../..
snapcraftctl build
build-packages:
- build-essential
- libreadline-dev
- libncursesw5-dev
- pkg-config
prime:
- -bin/hstr
- -share/man