summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6f1ab61332c860fb80b25163ebabd5caf8a9f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

# Maintainer: Andrea Feletto <andrea@andreafeletto.com>

pkgname=nodejs-cli-boxes
_pkgname=${pkgname#*-}
pkgver=2.2.1
pkgrel=1
pkgdesc='Boxes for use in the terminal.'
arch=('any')
url='https://github.com/sindresorhus/cli-boxes'
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/sindresorhus/$_pkgname/archive/v$pkgver.tar.gz")
noextract=("$_pkgname-$pkgver.tar.gz")
sha256sums=('4c07409e120a8713347503ba7a3c567b20b3df12ea8d1cd5377b5ede764402fc')

package() {
    cd "$srcdir"

    npm install --user root --global --prefix "$pkgdir/usr" \
        "$_pkgname-$pkgver.tar.gz"

    install -Dm644 \
        "$pkgdir/usr/lib/node_modules/$_pkgname/license" \
        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}