blob: 3f282de5ef62d10525035d21dc0bae51a86e2203 (
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
|
# Maintainer: Celogeek <arch-aur-f5d67e@celogeek.com>
# The official web build doesn't exists since v1.5
# I build it myself and share the package
_pkgname=fluffychat
pkgname=fluffychat-web-bin
pkgver=1.19.0
pkgrel=2
pkgdesc="Chat with your friends"
arch=('any')
url="https://fluffychat.im/"
license=('AGPL3')
makedepends=()
optdepends=()
provides=("fluffychat-web")
conflicts=("fluffychat-web")
source=(
"fluffychat-web-${pkgver}.tar.gz::https://github.com/krille-chan/fluffychat/releases/download/v${pkgver}/fluffychat-web.tar.gz"
"config-${pkgver}.sample.json::https://raw.githubusercontent.com/krille-chan/fluffychat/v${pkgver}/config.sample.json"
)
noextract=(
"fluffychat-web-${pkgver}.tar.gz"
)
sha256sums=('b5083f9932f711f85d9dd778cec359cb603af375abdc20168fd4504e23b54ae9'
'c17a181d58527d4cc23bcf5534d61add1abc0da542ee22080d5bd6242c4c12d7')
backup=(
"etc/webapps/${_pkgname}/config.json"
)
package() {
install -dm755 ${pkgdir}/usr/share/webapps/${_pkgname}
tar xzf "fluffychat-web-${pkgver}.tar.gz" -C ${pkgdir}/usr/share/webapps/${_pkgname} --strip=2
install -Dm644 "config-${pkgver}.sample.json" ${pkgdir}/etc/webapps/${_pkgname}/config.json
ln -s /etc/webapps/${_pkgname}/config.json ${pkgdir}/usr/share/webapps/${_pkgname}
sed -i '/base href=/d' ${pkgdir}/usr/share/webapps/${_pkgname}/index.html
}
# vim: set sw=2 ts=2 et:
|