blob: e035da55ad7b0bfba549526a5f0610dc96786fa7 (
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
|
# Maintainer: Paulo Matias <matias ufscar br>
pkgname=netlistsvg-git
pkgver=1.0.2.r9.g1e187a7
pkgrel=1
pkgdesc="draws an SVG schematic from a yosys JSON netlist"
url="https://github.com/nturley/netlistsvg"
arch=(any)
license=(MIT)
depends=(nodejs npm)
source=(git+https://github.com/nturley/netlistsvg.git)
md5sums=(SKIP)
pkgver() {
cd "$srcdir/netlistsvg"
git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/netlistsvg"
npm install -g --prefix "${pkgdir}/usr" git+file://"$(pwd)"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/cli/issues/1103 for details.
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
# npm gives ownership of ALL FILES to build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "${pkgdir}"
}
|