blob: 0e28ef967b3d01eca1b4acf6109d2d73375ab9e2 (
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
62
63
64
65
66
67
|
# Maintainer: garionion <garionion@entr0py.de>
pkgname=fluffychat
_gitname=${pkgname}-flutter
pkgver=0.21.1
pkgrel=2
pkgdesc="Chat with your friends"
arch=('any')
url="https://fluffychat.im/"
license=('AGPL3')
makedepends=('clang'
'ninja'
'flutter'
'cmake')
provides=("$pkgname")
conflicts=("$pkgname")
source=("git+https://gitlab.com/ChristianPauly/fluffychat-flutter.git")
sha256sums=('SKIP')
prepare() {
flutter channel dev
flutter upgrade
flutter config --enable-linux-desktop
cd ${_gitname}
git checkout v$pkgver
git submodule update --init --recursive
}
build() {
cd ${_gitname}
flutter build linux --release
}
package() {
cd ${_gitname}
# install
install -dm755 ${pkgdir}/opt
mv build/linux/release/bundle ${pkgdir}/opt/${_gitname}
# link
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/${_gitname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
# icon
install -Dm 644 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:
|