Eu pensei em tentar algo que tirasse, e escolhi sl
como o lugar para começar, porque a) é bastante simples, eb) é a melhor coisa do mundo. Este é o meu snapcraft.yaml:
name: sl
version: "1.0"
summary: SL(1) - Cure your bad habit of mistyping
description: SL (Steam Locomotive) runs across your terminal when you type "sl" as you meant to type "ls". It's just a joke command, and not useful at all.
confinement: strict
apps:
sl:
command: sl
parts:
sl:
plugin: make
source: https://github.com/mtoyoda/sl.git
source-type: git
source-branch: master
build-packages:
- libncurses5-dev
No entanto, quando executo o snapcraft, obtenho o erro a seguir :
$ snapcraft
Preparing to pull sl
Pulling sl
Cloning into '/home/darren/Scratch/snapls/parts/sl/src'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Checking connectivity... done.
Preparing to build sl
Building sl
make -j4
gcc -O -o sl sl.c -lncurses
make install DESTDIR=/home/darren/Scratch/snapls/parts/sl/install
make: *** No rule to make target 'install'. Stop.
Command '['/bin/sh', '/tmp/tmpyus7efkq', 'make', 'install', 'DESTDIR=/home/darren/Scratch/snapls/parts/sl/install']' returned non-zero exit status 2
Alguém poderia apontar onde estou errado, por favor?