From bd101aab99eec3b1b808e93cbb2b1ac27dabeeb6 Mon Sep 17 00:00:00 2001 From: pepa65 Date: Mon, 13 Mar 2017 11:06:05 +0700 Subject: [PATCH] Change install method for bpkg, enhanced package.json --- Makefile | 8 -------- README.md | 4 ++-- package.json | 29 ++++++++++++++++++++++------- 3 files changed, 24 insertions(+), 17 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 2912d65..0000000 --- a/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -BIN ?= tldr -PREFIX ?= /usr/local - -install: - cp $(BIN) $(PREFIX)/bin/$(BIN) - -uninstall: - rm -f -- $(PREFIX)/bin/$(BIN) diff --git a/README.md b/README.md index e2b5475..45c60ae 100644 --- a/README.md +++ b/README.md @@ -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.** tldr list screenshot @@ -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+ tldr new markdown screenshot diff --git a/package.json b/package.json index 7acc8fd..76b6e25 100644 --- a/package.json +++ b/package.json @@ -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 ", + "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" }