Package Details: parsoid 0.12.0_a13-3

Git Clone URL: https://aur.archlinux.org/parsoid.git (read-only, click to copy)
Package Base: parsoid
Description: A bidirectional wikitext parser and runtime
Upstream URL: https://www.mediawiki.org/wiki/Parsoid
Licenses: GPL2
Conflicts: parsoid-git
Provides: parsoid
Submitter: Horo
Maintainer: Horo
Last Packager: lilac
Votes: 4
Popularity: 0.000002
First Submitted: 2017-02-01 10:40
Last Updated: 2020-09-29 01:52

Pinned Comments

Horo commented on 2021-03-20 07:06

This JS implementation of parsoid is obsoleted since MediaWiki 1.35 bundled one PHP implementation. https://www.mediawiki.org/wiki/Parsoid

Latest Comments

Horo commented on 2021-03-20 07:06

This JS implementation of parsoid is obsoleted since MediaWiki 1.35 bundled one PHP implementation. https://www.mediawiki.org/wiki/Parsoid

respiranto commented on 2020-02-16 21:43

Currently, the install script deletes the user account 'parsoid' AND ITS HOME AND MAIL DIR, if that user exists. This is very wrong, IMHO.

There are several other issues with the PKGBUILD, which I have tried to address with the following result:


# Contributor: Jonas Heinrich <onny@project-insanity.org>
# Contributor: Einhard Leichtfuß <alguien@respiranto.de>
# Maintainer: Horo <horo@yoitsu.moe>

pkgname=parsoid
_pkgver=0.12.0-a2
pkgver=${_pkgver//-/_}
pkgrel=1
pkgdesc="A bidirectional wikitext parser and runtime"
arch=('any')
url="https://www.mediawiki.org/wiki/Parsoid"
license=('GPL2')
depends=('nodejs')
makedepends=('git' 'python2' 'npm')
optdepends=(
    'mediawiki: MediaWiki engine'
)
backup=(usr/share/webapps/parsoid/localsettings.js
    usr/share/webapps/parsoid/config.yaml)
source=("parsoid-${_pkgver}.tar.gz::https://github.com/wikimedia/parsoid/archive/v${_pkgver}.tar.gz"
        "parsoid.service"
        "parsoid.install"
        "parsoid.sysusers"
        "parsoid.tmpfiles")
options=('!strip')
install="parsoid.install"

build() { 
    cd $srcdir/parsoid-${_pkgver}
    alias python="python2"
    npm install
}

package() {
    mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}"
    cd $srcdir/parsoid-${_pkgver}
    cp localsettings.example.js localsettings.js    
    cp config.example.yaml config.yaml
    cp -R . "${pkgdir}/usr/share/webapps/${pkgname}/"
    install -Dm644 "${srcdir}/parsoid.service" \
            "${pkgdir}/usr/lib/systemd/system/parsoid.service"
    install -Dm644 "${srcdir}/parsoid.sysusers" \
            "${pkgdir}/usr/lib/sysusers.d/parsoid.conf"
    install -Dm644 "${srcdir}/parsoid.tmpfiles" \
            "${pkgdir}/usr/lib/tmpfiles.d/parsoid.conf"
    install -D "COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

sha512sums=('408baeef5c0e7c631b83ad52c441d912708479522e9ac40712274b4f5db5ca7adde5cf73c61bc7d1ccdfd8579eb3468a3a21aba590617908f49b3b2064831377'
            '3733d08751209fdef134940bbcce48efd0f380e13a8df466a7a1010450857a924aa364628242e4307cf40f4a34e60c1aeb1400d9a5b9fed88b448ed549e4d3f1'
            'e128339359f3ab74a2d6d50ba595959c2a38f3be82ab75826864abe36c12bf3e656070b5ceed2ea13e936b90c2050034ab8b8f7199bb51a41e297e0f074f24b7'
            '7f2346af222052e2e685d859e0bb7a7c7c9f03988f772856e0888cad299cb3870afdc280feb9e2798e7989d3382f68f689d43a685b466ce9f138edb77b20de3a'
            '6158afa3c276ddb5090166680621b7b9213f3d73b2d1a95181f5441631be039e7d454228d2f214f1411bb7f953475ddbd368e89eaa2288ac200ac666a57a6a99')

yair commented on 2018-02-14 16:52

/tmp/yaourt-tmp-vagrant/aur-parsoid/./PKGBUILD: line 31: 30299 Killed npm install ==> ERROR: A failure occurred in build().