summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d142bbd2a434d70d7e72c0af7857d6e47e24ee0 (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
37
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>

pkgname=stylelint-config-standard
pkgver=37.0.0
pkgrel=1
pkgdesc='Standard shareable config for stylelint'
arch=(any)
url=https://github.com/stylelint/stylelint-config-standard
license=(MIT)
depends=(
  stylelint
  stylelint-config-recommended
)
makedepends=(
  git
  npm
)
source=("git+$url.git#tag=$pkgver")
b2sums=('e55a0fe0c60421ec82ed5eff92cfb51319a147db5e89341405138aa2ce2d0d29f7bdf42f6ee4b5618a2f12f1415fa13cba4a56990c54b5e5b9233f6a8e82a05a')

prepare() {
  cd $pkgname
  npm ci
}

check() {
  cd $pkgname
  npm test
}

package() {
  cd $pkgname
  install -Dm644 -t "$pkgdir"/usr/lib/node_modules/$pkgname index.js \
    package.json
  install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname {CHANGELOG,README}.md
  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}