blob: c2046cbac0f168f96b301afe7a24f8dd9067655d (
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
46
|
# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
_pkgver_openzwafe=1.5
pkgname=gateway
pkgver=0.9.1
pkgrel=1
pkgdesc="Things Gateway by Mozilla"
arch=(any)
url="https://iot.mozilla.org/gateway/"
license=(MPL2)
depends=('libusb' 'nodejs')
optdepends=()
makedepends=(
'pkgconfig'
'curl'
'nvm'
'boost'
'boost-libs'
'bluez'
'bluez-libs'
'glib2'
'libusb'
'autoconf'
'libpng'
'git'
'gcc'
'nodejs-lts-carbon'
'nanomsg'
)
source=(gateway.install
gateway.service
git+https://github.com/mozilla-iot/gateway.git#tag=${pkgver})
sha1sums=('57cadc31a5abbeb88ec5b9728dc6c7d493ca9115'
'b3cc211e2725bc4ec80037d413c86563092b3a25'
'SKIP')
build() {
cd "${srcdir}/${pkgname}"
npm install
}
package() {
mkdir -p "${pkgdir}/opt"
mv "${srcdir}/${pkgname}" "${pkgdir}/opt/${pkgname}"
install -D -m644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}
|