blob: 2ea1b2d0f0406a56d531e36bc4f84b6aa6dbb0fd (
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-type-fest
_pkgname=${pkgname#*-}
pkgver=0.19.0
pkgrel=1
pkgdesc='A collection of essential TypeScript types.'
arch=('any')
url='https://github.com/sindresorhus/type-fest'
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=('ea58c72402539a06a21c5608ecd69ad3f153153e271695c4ee70f60cec9d8ce5')
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"
}
|