Package Details: haste-server-git r317.f3838ab-1

Git Clone URL: https://aur.archlinux.org/haste-server-git.git (read-only)
Package Base: haste-server-git
Description: Prettiest, easiest to use pastebin ever made
Upstream URL: https://github.com/seejohnrun/haste-server
Licenses: MIT
Conflicts: haste-server
Provides: haste-server
Submitter: heddson
Maintainer: heddson
Last Packager: heddson
Votes: 1
Popularity: 0.000000
First Submitted: 2016-01-26 19:44
Last Updated: 2018-09-22 21:59

Latest Comments

heddson commented on 2018-09-22 22:00

Fixed the line. Thanks!

C0rn3j commented on 2018-07-12 18:58

sed -i '36,40c "path": "./data","type": "file"' config.js

This line kills the config file upon reinstalling(updating) the package.

It turns

  "storage": {
    "path": "./data","type": "file"
  },

into

  "storage": {
"path": "./data","type": "file"

heddson commented on 2017-12-23 19:06

Thanks for the help! Updated the PKGBUILD.

Rodolpheh commented on 2017-12-23 08:47

If you manage to package it, it won't start because NPM doesn't copy the files but makes a symlink to the location where you downloaded the sources. The workaround is to change:

npm install --cache ../cache -g --user root --prefix "${pkgdir}/usr"

on line 44 of the PKGBUILD for:

npm pack
npm install --cache ../cache -g --user root --prefix "${pkgdir}/usr" haste-0.1.0.tgz

I'm not sure this will package for future versions as it is made for the 0.1.0 version but it works on this day (2017-12-23)

Rodolpheh commented on 2017-12-22 17:01

I solved my issue. Please consider changing:

sed -i '37,39d' package.json

on line 37 of the PKGBUILD for:

sed -i '36,38d' package.json

Rodolpheh commented on 2017-12-22 10:59

I get "npm ERR! Unexpected token , in JSON at position 735" during the package() function. I tried to find where was the problem but couldn't. Any tips ?