Created
March 2, 2020 09:29
-
-
Save benneti/4a08189d57a83ba4f4f8cf0f69923ca4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a1f2485a13b2d27e2f0776c1a8ec3972d6ee1807 Mon Sep 17 00:00:00 2001 | |
From: Benedikt <[email protected]> | |
Date: Mon, 2 Mar 2020 10:00:22 +0100 | |
Subject: [PATCH] update to node version | |
--- | |
PKGBUILD | 13 ++++++------- | |
1 file changed, 6 insertions(+), 7 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 25adb65..ef61b5a 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,8 +1,9 @@ | |
# Maintainer: Maxime "pep" Buquet <[email protected]> | |
_pkgbase='codimd-cli' | |
+_npmname='@hackmd/codimd-cli' | |
pkgname=${_pkgbase}-git | |
-pkgver=r34.063634d | |
+pkgver=r1.bb9bef4 | |
pkgrel=1 | |
pkgdesc="A tiny CLI to perform common operations on CodiMD (formerly known as HackMD)." | |
arch=('any') | |
@@ -13,6 +14,7 @@ conflicts=('codimd-cli') | |
depends=('bash' 'curl' 'jq' 'wget') | |
makedepends=('git') | |
source=("$_pkgbase::git+https://github.com/hackmdio/codimd-cli.git") | |
+sha256sums=('SKIP') | |
pkgver() { | |
cd "$_pkgbase" | |
@@ -24,10 +26,7 @@ pkgver() { | |
package() { | |
cd "$srcdir/$_pkgbase" | |
- | |
- install -m755 -d "$pkgdir/usr/bin" | |
- install -Dm755 "bin/codimd" "$pkgdir/usr/bin" | |
- ln -s /usr/bin/codimd "$pkgdir/usr/bin/hackmd" | |
+ local _npmdir="$pkgdir/usr/lib/node_modules/" | |
+ mkdir -p $_npmdir | |
+ npm install -g --prefix "$pkgdir/usr" $_npmname | |
} | |
- | |
-sha256sums=('SKIP') | |
-- | |
2.25.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment