blob: 0b2198fea5d8d09f7681f8e96d711ebc36bec426 (
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
|
# Maintainer: Jean Lucas <jean@4ray.co>
# Contributor: mustafagonul <mustafagonul@gmail..com>
pkgname=create-react-app
pkgver=3.3.0
pkgrel=1
pkgdesc='Bootstrapping tool for React'
arch=(any)
url=https://github.com/facebook/create-react-app
license=(MIT)
depends=(nodejs)
makedepends=(npm)
source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
sha512sums=('ca17976faf1890b0870fe20d0870787fcff78727ade29b15a52ca27a23c77a621b19b6d8974f399f6daf102211723a05d38deac8fef40a0e16581892231d665b')
package() {
npm i -g --prefix "$pkgdir"/usr $pkgname-$pkgver.tgz
cd "$pkgdir"/usr
# Fix permissions
find . -exec chown -h 0:0 {} +
find . -type d -exec chmod 755 {} +
install -Dm 644 lib/node_modules/$pkgname/LICENSE -t share/licenses/$pkgname
}
|