Package Details: haste-server-git r408.b52b394-1

Git Clone URL: https://aur.archlinux.org/haste-server-git.git (read-only, click to copy)
Package Base: haste-server-git
Description: Prettiest, easiest to use pastebin ever made
Upstream URL: https://github.com/toptal/haste-server
Licenses: MIT
Conflicts: haste-server
Provides: haste-server
Submitter: heddson
Maintainer: C0rn3j
Last Packager: C0rn3j
Votes: 2
Popularity: 0.000000
First Submitted: 2016-01-26 19:44 (UTC)
Last Updated: 2023-07-10 00:22 (UTC)

Latest Comments

carlosal1015 commented on 2022-03-15 15:42 (UTC)

https://www.reddit.com/r/archlinux/comments/teql3v/github_no_longer_supports_git_some_pkgbuilds/

C0rn3j commented on 2021-03-24 08:46 (UTC)

Funny enough I did, but forgot to push the change, thanks for notifying me!

christoph.gysin commented on 2021-03-24 07:32 (UTC)

Please remove --user root to avoid installing the root npm module

C0rn3j commented on 2020-10-17 07:57 (UTC) (edited on 2020-10-17 17:46 (UTC) by C0rn3j)

The package.json hacks are broken against current git.

The first one needs to be 38i and second 32,34d.

The config.js hack needs to be changed to 36c.

heddson commented on 2018-09-22 22:00 (UTC)

Fixed the line. Thanks!

C0rn3j commented on 2018-07-12 18:58 (UTC) (edited on 2018-07-12 18:58 (UTC) by C0rn3j)

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 (UTC)

Thanks for the help! Updated the PKGBUILD.

rodolpheh commented on 2017-12-23 08:47 (UTC)

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 (UTC)

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 (UTC)

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 ?