blob: 22b4e176fe27cf30de8b24a1f350a0cccc5306c1 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: shootingstargragon
# thanks to celogeek, sseneca, dr460nf1r3, dr460nf1r3 and AverytheFurry for pointing out multiple things
pkgname=fluffychat-localflutter
_pkgname=fluffychat
pkgver=1.23.0
pkgrel=1
pkgdesc="Chat with your friends, be careful about your flutter environment"
arch=('x86_64' 'aarch64')
url="https://fluffychat.im/"
license=('AGPL3')
depends=('gtk3' 'jsoncpp' 'libsecret' 'zenity' 'libolm')
makedepends=('clang'
'ninja'
'cmake'
'git'
'unzip'
#'flutter'
'webkit2gtk')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("fluffychat-v${pkgver}.tar.gz::https://github.com/krille-chan/fluffychat/archive/refs/tags/v${pkgver}.zip")
sha256sums=('eb835f1185017db828eeda1a77621cc4a1473b2ac2c832b4a81ca1cf78539d6b')
# Check the fluffer environment yourself
build() {
cd ${_pkgname}-$pkgver
flutter build linux --release --verbose
}
package() {
# install
install -dm755 ${pkgdir}/opt
mv ${_pkgname}-$pkgver/build/linux/x64/release/bundle ${pkgdir}/opt/${_pkgname}
# link
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
# icon
install -Dm 644 ${pkgdir}/opt/${_pkgname}/data/flutter_assets/assets/favicon.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png
# desktop entry
install -dm 755 "${pkgdir}/usr/share/applications"
cat > ${pkgdir}/usr/share/applications/${_pkgname}.desktop << EOF
[Desktop Entry]
Type=Application
Version=${pkgver}
Name=FluffyChat
Comment=Matrix Client. Chat with your friends
Exec=${_pkgname}
Icon=${_pkgname}
Terminal=false
EOF
}
# vim: set sw=2 ts=2 et:
|