summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83b80f6e1b800648b7a7f8f87498f84b29f35127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: eclairevoyant
_npm_user=wenyan
_npm_pkg=cli
pkgname=nodejs-$_npm_user-$_npm_pkg
pkgver=0.3.4
pkgrel=1
pkgdesc="文言文編程語言。A programming language for the ancient Chinese. Command-line compiler"
arch=('any')
url="https://github.com/wenyan-lang/wenyan"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
_filename=$_npm_pkg-$pkgver.tgz
source=("https://registry.npmjs.org/@$_npm_user/$_npm_pkg/-/$_filename")
sha256sums=('84ef489c9831f8014c4b2f40fc263a57d6b3c2259a10c0e0ef3213fe9cf9ae42')

package() {
    npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${_filename}"

    # npm gives ownership of ALL FILES to build user
    # https://bugs.archlinux.org/task/63396
    chown -R root:root "${pkgdir}"
}