blob: b5a829ecb9db4b5a10841925df485c49c178bc0c (
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
|
# Maintainer: Nissar Chababy <funilrys at outlook dot com>
# Ex-Maintainer: Max Falk <gmdfalk at gmail dot com>
pkgname=rocketchat-server
pkgver=3.6.0
pkgrel=1
pkgdesc="The Ultimate Open Source WebChat Platform"
arch=("any")
url="https://rocket.chat"
license=("MIT")
depends=("npm" "nodejs-lts-erbium" "mongodb" "graphicsmagick" "curl" "python2" "gcc")
makedepends=()
optdepends=()
backup=("etc/rocketchat/${pkgname}.conf")
CFLAGS=-std=gnu11
install="${pkgname}.install"
source=("rocketchat-${pkgver}::https://releases.rocket.chat/${pkgver}/download"
"rocketchat-server.install"
"rocketchat-server.conf"
"rocketchat-user.conf"
"rocketchat.service")
sha512sums=('8d8dff9fd600c9a3e7e3b3e36c89060a2f12c2732f357762e1380dd502dcb166caa84e3af80370ac8515aaef2c7059bb0dd63e6443545603c69ce39875188c84'
'6700fae043f59881c0c8821db176a8d9cbbf7f047bd48750dbcd7abd7c531831436f910a28745b40d4d2fcbb7d2081b5512a5ee23ea6355bb065fde3b0672edc'
'4ff8899a47612a81f73c1c6449fb30a7ddfb0b199756db7f73e0a3078cf818b88e481fd828296b148a348d137ae529ce591d6c2bd6b57ae9278188e715086b59'
'0086f72f16a594116586d4b6783b104f7bba779e4f8e31e5988c7fa67e1c7d9fc95215d0a04c4f24c72b4183774a9768a29b05c828990125dd4a3379a69aa648'
'cc34ec625da591c2fc1cbee70e936484025071608530fddd554e72b94405b957cdf5d39b1b6614cac2d631c6cf644054b1b88997b792e95368a4b2fd43711d29')
package() {
install -dm755 "${pkgdir}/usr/share/${pkgname}"
cp -dr --no-preserve=ownership ${srcdir}/bundle/* "${pkgdir}/usr/share/${pkgname}"
pushd "${pkgdir}/usr/share/${pkgname}/programs/server"
npm install --cache "${srcdir}/npm-cache"
popd
install -Dm644 ${pkgname}.conf "${pkgdir}/etc/rocketchat/${pkgname}.conf"
install -Dm644 rocketchat.service "${pkgdir}/usr/lib/systemd/system/rocketchat.service"
install -Dm644 rocketchat-user.conf "${pkgdir}/usr/lib/sysusers.d/rocketchat.conf"
}
|