Change install method for bpkg, enhanced package.json

This commit is contained in:
pepa65 2017-03-13 11:06:05 +07:00
parent b61acbe823
commit bd101aab99
3 changed files with 24 additions and 17 deletions

View File

@ -1,8 +0,0 @@
BIN ?= tldr
PREFIX ?= /usr/local
install:
cp $(BIN) $(PREFIX)/bin/$(BIN)
uninstall:
rm -f -- $(PREFIX)/bin/$(BIN)

View File

@ -5,7 +5,7 @@
### Bash client for tldr: community driven man-by-example
**A fully-functional [bash](https://tiswww.case.edu/php/chet/bash/bashtop.html)
client for the [tldr](https://github.com/rprieto/tldr/) project, providing
client for the [tldr](https://github.com/tldr-pages/tldr) project, providing
poignant examples of terminal commands.**
<img alt="tldr list screenshot" src="tldr-list.jpg" title="tldr list" width="600" />
@ -86,6 +86,6 @@ Or even better, send a pull request!
Original client by Ray Lee http://github.com/raylee/tldr (MIT license)
Relicensed under GPL v3+
Relicensed under GPLv3+
<img alt="tldr new markdown screenshot" src="tldr-markdown-new.jpg" title="tldr new markdown" width="600" />

View File

@ -1,9 +1,24 @@
{
"name": "tldr-bash-client",
"version": "0.3",
"description": "Bash client for tldr: community driven man-by-example",
"global": "true",
"install": "make install",
"uninstall": "make uninstall",
"scripts": [ "tldr" ]
"name": "tldr-bash-client",
"version": "0.3.0",
"description": "Bash client for tldr: community driven man-by-example",
"preferGlobal": true,
"global": "true",
"install": "install -c tldr ${PREFIX:-/usr/local}/bin",
"uninstall": "rm -f -- ${PREFIX:-/usr/local}/bin/tldr",
"bin": {
"tldr": "tldr"
},
"repository": {
"type": "git",
"url": "https://github.com/pepa65/tldr-bash-client"
},
"keywords": [ "color", "github", "docs", "client", "markdown", "bash", "man" ],
"author": "pepa65 <solusos@passchier.net>",
"license": "GPL-3.0+",
"bugs": {
"url": "https://github.com/pepa65/tldr-bash-client",
"email" : "solusos@passchier.net"
},
"homepage": "https://github.com/pepa65/tldr-bash-client"
}