summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c1c7c2dd3f9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nodejs-lint-md
+ pkgdesc = Cli tool to lint your markdown file for Chinese.
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/hustcc/lint-md#readme
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+ noextract = lint-md-0.1.1.tgz
+ source = https://registry.npmjs.org/lint-md/-/lint-md-0.1.1.tgz
+ sha1sums = cb6b87c19b1552910cb43be79e9ed37d253acaeb
+
+pkgname = nodejs-lint-md
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f3213693df
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+_npmname=lint-md
+_npmver=0.1.1
+pkgname=nodejs-lint-md # All lowercase
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="Cli tool to lint your markdown file for Chinese."
+arch=(any)
+url="https://github.com/hustcc/lint-md#readme"
+license=(MIT)
+depends=('nodejs' 'npm')
+optdepends=()
+source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
+noextract=($_npmname-$_npmver.tgz)
+sha1sums=(cb6b87c19b1552910cb43be79e9ed37d253acaeb)
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p $_npmdir
+ cd $_npmdir
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ find ./ -type f -exec sed -i "s@$pkgdir/usr@/usr@g" {} \;
+ chmod 755 "$pkgdir/usr/bin/lint-md"
+}
+
+# vim:set ts=2 sw=2 et: