summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lane2020-04-28 15:24:48 +0100
committerChris Lane2020-04-28 15:24:48 +0100
commit8ac64c7de782664c5878955289656cec9f3abaf5 (patch)
tree0445e106b0294eaa57cf46bc5fab54e2a53ab801
downloadaur-instant-markdown-d.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..838bb9a2355
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = instant-markdown-d
+ pkgdesc = Instantly-updating Markdown Server
+ pkgver = 0.2.0_rc.2
+ pkgrel = 1
+ url = https://github.com/suan/instant-markdown-d
+ arch = any
+ license = APACHE
+ makedepends = npm
+ depends = nodejs
+ noextract = instant-markdown-d-0.2.0-rc.2.tgz
+ source = https://registry.npmjs.org/instant-markdown-d/-/instant-markdown-d-0.2.0-rc.2.tgz
+ sha512sums = f452204931e66760ed311223f01c05b9fdada09f3f51650007ef54e36bf0d2d88b9b5e85062a2763bbcd2b9c6abb3bbcd0e82461309cc56e2533651113638138
+
+pkgname = instant-markdown-d
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..806238aaef7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Chris Lane <aur at chrislane dot com>
+_npmver=0.2.0-rc.2
+pkgname=instant-markdown-d
+pkgver=0.2.0_rc.2
+pkgrel=1
+pkgdesc='Instantly-updating Markdown Server'
+arch=('any')
+url='https://github.com/suan/instant-markdown-d'
+license=('APACHE')
+depends=('nodejs')
+makedepends=('npm')
+optdepends=()
+source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${_npmver}.tgz")
+noextract=("${pkgname}-${_npmver}.tgz")
+sha512sums=('f452204931e66760ed311223f01c05b9fdada09f3f51650007ef54e36bf0d2d88b9b5e85062a2763bbcd2b9c6abb3bbcd0e82461309cc56e2533651113638138')
+
+package() {
+ npm install -g --user root --prefix "${pkgdir}/usr" "$srcdir/${pkgname}-${_npmver}.tgz"
+
+ # Non-deterministic race in npm gives 777 permissions to random directories.
+ # See https://github.com/npm/npm/issues/9359 for details.
+ find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
+}
+
+# vim:set ts=2 sw=2 et: