summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74e1269a1b330e93d772c6c602dbd27d9972c146 (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
38
39
40
41
42
43
44
45
# Maintainer: taotieren <admin@taotieren.com>

pkgname=qeda
pkgver=0.4.1
pkgrel=1
pkgdesc="The tool for easy creating electronic component libraries"
arch=('any')
url="https://github.com/qeda/qeda"
license=('MIT')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(
    sh
    nodejs
)
makedepends=(
    npm
    coffeescript
    poppler
    ghostscript
)
optdepends=(
    'kicad: Electronic schematic and printed circuit board (PCB) design tools'
    'geda-gaf: gEDA/gaf suite - Contains gschem, gnetlist, gsymcheck, gattrib, utilities and documentation from thegEDA project'
    'pcb-rnd: free/open source, flexible, modular Printed Circuit Board editor'
)
backup=()
options=()
install=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('588f823031687eca29e61e287d00c50466d8963340ddec85503c38ead41bd3c5')
noextract=("${pkgname}-${pkgver}.tar.gz")

package() {
    npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tar.gz"

    # 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}"
}