blob: b3f41f969595946c02236d3e3c13b4077f331eb0 (
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
29
30
31
32
33
34
35
36
|
# Contributor: Stephen Diehl <sdiehl at clarku dot edu>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=coffeescript-git
pkgver=2.6.1.r1.g887a6174
pkgrel=1
epoch=1
pkgdesc='Language that compiles into JavaScript'
arch=('any')
url=http://coffeescript.org
license=('custom')
depends=('nodejs')
makedepends=('npm')
provides=('coffeescript' 'coffee-script')
conflicts=('coffeescript' 'coffee-script')
source=(git+https://github.com/jashkenas/coffeescript.git)
md5sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --tags | sed 's/-/.r/' | tr - .
}
package() {
cd ${pkgname%-git}
npm install --global --user root --prefix "$pkgdir"/usr coffeescript
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
chmod -R u=rwX,go=rX "$pkgdir"
# npm installs package.json owned by build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
# license file
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|